Here’s a chart for you:
What this shows is that states with the smallest population of illegal immigrants had the strongest vote for Donald Trump. It’s not an especially strong correlation, and I wouldn’t draw any grand conclusions from it, but it sure doesn’t seem to suggest that actual loss of jobs to illegal immigrants is what drives support for Trump and his wall. If anything, it’s just the opposite.