Simple fact is that people in this country are becoming more racist, more xenophobic, more nationalistic and it's a worrying trend. We make fun of America for Trump, but we have a country about to elect Boris Johnson and give him a majority to do what he wants. It's also reflected across the world with many other countries having an increase in support for nationalistic parties. Globalisation has exploded in the last 20-30 years and the world has changed so much that unfortunately most people have reverted back to the most basic human instincts of survival and fear. Many people actually fear change and want to keep the status quo, regardless of if it's actually working, or even worse go back to the past because of some misplaced sense of nostalgia and longing for something that never actually existed. Those in power and especially those on the nationalistic side realise this and encourage people's fears by blaming most of the problems on foreigners who have arrived and changed the country, regardless of if it is true. The native people who fear the change leap onto this simple explanation, because they cannot simply face the truth which is that their own politicians and their own country are to blame for their problems.
I have no idea what the solution is tbh other than hoping younger generations keep hold of their ideals as there does seem to be a large generation gap between older generations who want their country back and younger generations who are more tolerant and in another 20-30 years people will be more accepting of others.