Without beating the bush, ageism is a thing in most (if not all) industries and quite some companies will cut you out immediately due to age.
That said, there is a huge demand for people who can get the job done, are continuously learning and worry about the sustainability of their work (people who don’t just do the work for completion sake but actually worry about how readable and maintainable it is, how they can scale it and make it better on a next iteration).
I don’t believe there is a “late” if you put in the effort and show it with results that are irrefutable (projects, articles, knowledge of what you know and don’t know) when going to interviews. It just might take 60 interviews instead of 40 to land that first job due to the age stigma.
Just to make sure I properly nail the age part, the oldest person I know to have been hired started at 40 by studying, did some small projects and went ahead to fail miserably in a lot of interviews and eventually landed an internship two years after that lead him to become a junior a less than a year after and is still going strong. The oldest I’ve interviewed was in his 50’s and didn’t get the position only because he knew exactly zero, he was transitioning and hadn’t even tried to code a line (we were asking for bare minimum experience, I mean, you show us a calculator and we would consider for paid internship).
To tackle the landing of a British company position, there are positions for remote work (quite some) that are usually a bit trickier to land for junior but, since for those positions all the world is looking you’re not limited to Britain so it increases your chances. A junior for the UK at current market nets about 25k-50k pounds yearly before taxes so take that into account.
Lastly, don’t forget that you have the experience of previous jobs, take advantage of that and apply it for your advantage, for example, you’re learning and struggling, take notes down and apply your experience has a teacher to help others learn how not to fall on the same pitfalls, if you can learn something, compress it in a way that is digestible for other people and teach that is a valuable asset to have at your disposal either in a company or doing stuff by yourself.
Long reply but I do hope it helps you make a decision, you can always program as a hobby regardless of the choice, is fun to build stuff