If the polling company does a professional job they start with some questions which establish the category of respondent (age, gender, etc) so that a representative sample of the national population can be built up.
Of course lots of polls aren’t done that way.