Xenophobia is on the rise across the board with the rising unequality and an alliance between extreme-right elements of the society and the wealthy class that wants to use them to destroy democratic institutions and take over the power. Rationally with the ageing population we actually need managed mass migration but instead get managed mass hate and unmanaged migration.
Replacing your own people with foreigners is never rational.