Without getting into the current environment, for the obvious reason it broaches on politics, what we are seeing today has happened time and again when major shifts are happening.
At the turn of the 20th century, there was all kinds of ferment, in Europe they were worried about the arms race then going on (especially in naval affairs), in the US there was a populist movement roughly analagous to what you see today (William Jennings Bryan et al), that decried the power of the banks and monetary interests (the whole silver versus gold standard, where a silver standard would make debt cheap for people like farmers and the like due to inflation). In Europe among the ruling class they were worried about anarchism. At the turn of the 20th century there was a raging debate about immigration in the US, about whether we should be allowing all those millions of people in…Economically the turn of the 20th century came off with some fear, there were several brutal recessions in the 1890’s, and and as a result there was a lot of antagonism towards the concentration of power in big companies (the trusts), and at the turn of the 20th century labor unrest and the growth of labor organizing, where working people were looking for a better standard of living.
The mid to late 19th century the industrial revolution was breaking up the old craft system and was causing the start of the decline of rural areas over city areas, and that caused concern and consternation.
Then we had the cold war, especially in the 1950’s and through the 1960’s,. when people were scared of so much, the red scare that caused so much overreaction was not dissimilar to the fears of immigration today, where real worries (soviet expansion, the iron curtain, and of course nuclear anihilation, today terrorism, the loss of good paying jobs) turns into a much broader reaction that creates a climate of distrust that translates into fear of those who are different, etc.
In other words, this is nothing new, it happens when societal shifts happen. While it was pop sociology, Alvin Toffler in 'Future Shock" and “The Third Wave” touched on this, Jacques Barzun in his “From Dawn To Decadence” did so in a more academic way, and Barzun especially talks about the reactions to these changes, what fear drives, and also how politically these fears are used.