This is only an issue if either there are genuinely not enough jobs in the field lots of people are trying to go into, in which case people should not be encouraged to go into it; or if older people demand higher compensation for the same skillset as younger people based purely on age, in which case that doesn't seem fair anyways.
And realistically, a mid-life learner is generally the better option to begin with - it's nearly impossible that someone after years of working has picked up no transferrable hard or soft skills and made no network connections of any value.