I have seen this in the UK definitely.
I think it is more a question of whether the company actually understands technology. Lots of companies, particularly in the UK, have ended up in the tech business so they are always one step from outsourcing everything to India (or elsewhere, India is getting expensive now).
In that environment, it is very hard to understand what an older person brings to the table beyond costing more.
The stuff about "you have to keep learning" is also something you hear a lot in the UK. Yes mate, I know React but haven't used styled-components...your company uses it, but there is no way I will be able to learn it. When you are in a job, you are continually learning and no company fires everyone when they move a system to a new language or whatever. Part of the reason why the UK has a "skills shortage" is because, as explained above, most companies have no idea what they are hiring for. Oh, you last worked on Java 8...sorry, you will never be able to catch up to Java 1X.
This is part of the ageism situation because younger people view older people as unable to learn in almost every context. But the reality is that many companies are unwilling to learn about the things people can do if you give them an opportunity.
Some companies aren't like this but the small size of the startup market/the use of the UK as an outsourcing hub/the dominance of large non-tech companies in tech hiring means that this is the case in most of the UK.