The trend unfortunately dates back through history. The 1960s through 1990s were a high period of openness to foreigners and globalisation, across the political spectrum, though not universally embraced. In particular the 1965 Hart-Celler Act, lifting nation-of-origin quotas (https://en.wikipedia.org/wiki/Immigration_and_Nationality_Ac...) and the 1961 formation of the Peace Corps (https://en.wikipedia.org/wiki/Peace_Corps) saw a tremendous increase in non-European immigration and foreign students to the US, and of peaceful deployment of Americans to non-European nations. (Despite overlapping in part with the Vietnam War). Globalisation, beginning in large part with oil and the Middle East but extending to consumer, manufacturing, and service relationships, also played a major role. The "bad foreigners" existed, but were Communists, a relationship that shifted and softened beginning in the 1980s, with Islamic and generally Latin-American narcotics adversaries ascendant.

Richard J. Hofstadter, "The Paranoid Style in American Politics", is a 1963 essay that "explores the influence of a particular 'style' of conspiracy theory and "movements of suspicious discontent" throughout American history." It's not specifically concerned with anti-foreign sentiment, but includes that.

https://harpers.org/archive/1964/11/the-paranoid-style-in-am...

https://en.wikipedia.org/wiki/The_Paranoid_Style_in_American...

But the xenophobic pattern is clear in the history of American Immigration law. Forced Mexican Repatriation (1932), The National Origins Formula (1924), California Alien Land Law of 1913, Anarchist Exclusion Act (1901), Chinese Exclusion Act (1882).

The Page Act (1875) barring "immigrants considered 'undesirable,' defining this as a person from East Asia who was coming to the United States to be a forced laborer, any East Asian woman who would engage in prostitution, and all people considered to be convicts in their own country."

https://en.wikipedia.org/wiki/History_of_laws_concerning_imm...

Samuel Finley Breese Morse, creator of the eponymous Morse Code, wrote an anti-immigrant, anti-Catholic screed, Foreign Conspiracy Against the Liberties of the United States, initially anonymously though his name was later associated with the piece.

Surely American Protestants, freemen, have discernment enough to discover beneath them the cloven foot of this subtle foreign heresy. They will see that Popery is now, what it has ever been, a system of the darkest political intrigue and despotism, cloaking itself to avoid attack under the sacred name of religion. They will be deeply impressed with the truth, that Popery is a political as well as a religious system; that in this respect it differs totally from all other sects, from all other forms of religion in the country.

https://en.wikipedia.org/wiki/Samuel_Morse#Anti-Catholic

https://archive.org/details/foreignconspiracy00mors

That itself is only one of a long line of examples of anti-immigrant, nationalistic, or racist sentiments expressed by business and industry leaders, including notably Henry Ford and Thomas Watson (IBM), both anti-semites and Nazi collaborators.

https://www.thehenryford.org/collections-and-research/digita...

https://allthatsinteresting.com/henry-ford-nazi

https://www.algemeiner.com/2012/04/12/ibms-role-in-the-holoc...

Mark Twain's On the Damned Human Race includes numerous essays highlighting abominable treatment of and policy toward foreigners (and others), notably during the Spanish American war, mostly dating from 1890-1910.

https://www.worldcat.org/title/mark-twain-on-the-damned-huma...

Ellsworth and Harris, The American Right Wing (1960) is a fascinating look at reactionary politics, much of it xenophobic and racist, largely of the 1940s and 1950s, with more than a few names familiar today.

https://archive.org/details/AmericanRightWingEllsworthHarris...

True history is far darker than the highlight reels.