I swear I remember my social studies teacher saying one reason for the electoral college is to prevent someone like Trump. The founding fathers didn’t want to trust the popular vote in case the masses got duped. With the polarization of the parties there’s little chance of voting for the other person happening. There are some state laws that force them to vote for their candidate but I’m not sure how many states have the faithless electors clause.
Of course we got Trump because of the electoral college he lost the popular vote.