I think this was less of a problem pre-Trump more specifically.
At some point the idea that foreigners and minorities should be treated like human beings seemed to become controversial in some circles. Same circles that thought an alternate invented history was preferable to reality and spent a lot of time/money mainstreaming that idea.
The resulting push back was expected and necessary. There is a cycle of civil rights wins followed by backlash in the US, I don't think that cycle ever ends.