Immigration is such a consistently used tool when a scapegoat is needed to distract from the economy. It's almost boring how typical the reaction is, and is a shame we still fall for it centuries later.
Pretty good video showing just a few of the examples through history: https://www.youtube.com/watch?v=VdAmhumeoLQ