Populism and racism is as old as societies. Anciant Greece already had it. Rome fell to it. Christianism is born out of it.
Funnily enough, people always complained about how bad their society was because of this new thing. Like 5 thousand years ago already. Probably earlier even.
Which is not to say we shouldn’t do anything about it. We definitely should. But common sense won’t save us unfortunately.