A recent series of worldwide studies finds that ugly anti-immigrant prejudice isn't inevitable just because
immigration increases. "Inclusive legal and socioeconomic integration policies that render immigrants more equal to natives...reduce xenophobia among natives": https://www.researchgate.net/publication/358004508_Policies_and_prejudice_Integration_policies_moderate_the_link_between_immigrant_presence_and_anti-immigrant_prejudice
BTW, I found those studies in my review of social science research offering possible solutions to tribalism: "Heterogenius: Why and How to Stop Dividing People into Us and Them" - https://www.alfiekohn.org/blogs/diversity/