The U.S. has had to deal with this problem on a greater scale compared to countries that grew over millennia because of a liberal immigration policy and economic freedoms afforded to immigrants, and the aftermath of slavery. It's remarkable that this experiment has worked as well as it has (thank you, geography). But the ruling class dropped the ball over the last 20 years and ignored the rapid increase of those marginalized by immigration & trade side-effects, even though there still is a widely-held regard for the "melting pot", so now we got Trump.
In the long run, we'll likely look back at all this fuss as another chapter in our history books, but I'm sure there'll be some other ethnic group immigrating in droves. The melting pot is a continual process. Slow and frustrating sometimes, but it works for the better in the long-term.
It's probably not the only variable at play here (economic development and education levels could be additional factors), but it might be influencing those variables in subtle (and not-so-subtle) ways.
It doesn't fully protect us from effects of globalization and we have similar situation with the population in rural areas and small old industrial towns not doing that well and turning against immigrants because of that.
But it seems that the situation is much worse in the US.