The Electoral College was created by the Constitution but I’m not sure if the states can award their votes to the winner of the popular vote.
I don’t see any Constitutional requirement as to HOW the States pick their Electors - should be ok to award them based on the national popular vote if they want to. Nobody in any of the states without one of the top 40 or so metropolitan areas should support such a state government.