Trump was elected because he sided with a "mainstream America" that had been demonized by the Left. Clinton ran a divisive campaign based on identity politics, unlike Obama, and lost a lot of the white voters who had voted for Obama.