Internal transfer is a great path to this. If you can't get hired in stack A, but can in stack B, get a job somewhere that employs B but is short A.
PMs will often take any willing candidate, and in no time you'll be "one of the employees that does A".
I've accidentally transitioned from a product designer to a front end developer, even against my will, at least 4 times this way. There is no chance I could pass any serious front end interview, but I'm well enough equipped for the boring realities of the things that need to be updated in prod.
Once you're in the door, you're measured against the realistic "what needs to ship" bar, not the bright and shiny "we only hire the best" bar.