Well, I guess you have two options.
One, take the intellectually lazy and morally repugnant avenue of finding a scapegoat for all the problems. Which usually devolves into nationalist racism.
Or, two, man up and accept that the world is complicated and it’s problems are multi-faceted. They will require dynamic, multi-pronged solutions.
That’s theoretically why government is there for, to save capitalism from itself by regulating its excesses and… ahem, ‘encouraging’ bosses and owners of capital to be more generous with their frequently I’ll-gotten gains (whether it’s through providing legal protections to the right to unionize, guaranteed loans for higher education, the right to a free press to criticize and expose corrupt avatars of power, etc)
Alas, too many politicians and civilians (on both team red and blue) have taken the first option. We will need to invest in education and jobs training, though some people are beyond saving and have become too hateful to reach.