Trump jumped to the front on the immigration issue. That is the primary issue that garnered most of his support. His other issues like trade and deficits were minor compared to the immigration thing.
And remember Clinton didn't even bother to campaign in a number of battleground states that Obama had won easily. But the illegal immigration issue is still to me the prime reason most previous Dem blue collar people voted for Trump.