Practice
You can only fix what you measured
Real pollsters know a perfectly random sample does not exist: some people do not pick up, some refuse. So they weight the answers. If the sample has half as many young people as the country, each young person's answer counts twice. The shares of age groups, education levels and regions are known from the census.
Weighting by age fully removes the landline, street and substitution biases in our country, because there the chance of being sampled depends only on age. But it does not help when the supporters of one candidate are the ones who refuse to answer: they can be any age. And the fix has a price: if the sample holds only a few dozen young people, their answers get a big weight and the forecast scatters more.
When weighting cannot save them, everyone misses together. In Britain's 2015 election the Conservatives beat Labour by 6.6 points, while the final polls showed almost a tie, YouGov among them with 10,307 interviews. The British Polling Council's inquiry named unrepresentative samples, which weighting did not fix, as the main cause.