There's many stories, but let's call this the average story: "Immigration brings growth, growth advances everyone".
Well, it doesn't, at least not at the moment. Oops.
Now we can argue why, of course, but a certain amount of backlash was to be expected. It was clear for 20 years or more exactly what would happen when "the alternative" to the prevailing "left+green" coalitions gains power. To an extent I don't understand how anybody can claim to be surprised.
Also, in a democracy I would think that arguing that "the uneducated masses" are wrong is a quick path to irrelevancy. That, by the way, is exactly how we want the system to work. The system needs to work well for the uneducated masses. Figure it out, or accept that the other guys are going to win the election.