We are really seing the chickens comming home to roost with regards to globalisation politics of the last few decades. When the wealth growth only happens in the top few percent this is inevitable.
I would argue it's demagogues who take advantage of societal breakdown to inflame inherent racism.
More generally we also have a choice regardless of circumstances to not be racist. I can see how as a species we're not there yet though.
Still being billed for an universal human right (as health) is a problem, but you can use your phone to call an ambulance wherever you are.