That was possible pre-2022 during the famous developer labor shortage. In the current market, companies expect seniority/experience in that specific stack they use for that, no more career changers.
They either take you as a senior/expert to contribute from day one, or as a young and cheap newgrad/junior out of uni they expect to train on the job, but no more in-betweeners switching careers as they're not as experienced as the seniors on the market, nor are they as cheap and malleable as newgrads/juniors.
Sure, in theory every developer can learn at home to do anything new related, but in the current job market, companies expect X-years of proven on the job experience with their stack, no more bootcampers, and no more self-taught-at-home types. The entry bar has risen significantly. At least where I live.
Like I just saw on linkeidn a job posting from a large bank that was an hour old and it already had 100 applications, which probably means most applications are now AI botted, meaning yours will get lost in the noise and getting a call back for an actual interview is like rolling a dice.
Not saying it's impossible to change(I did a couple of times), just that's it's much more difficult than in the good times, and will most likely also come with a paycut.