There was always the vibe that electric vehicles were a major green solution for the future, and Musk had done a lot to popularize them. So as with the Prius before him, Musk and Tesla were embraced among environment-friendly folks of all stripes (but mostly liberal)
What's interesting is that a segment of the right has been treating everything "green" the way they did everything woke, and there has a backlash against EVs, especially when it comes to incentives and mandates. I saw a steady diet of anti-EV/pro-Internal Combustion Engine memes and conspiracy theories among Trump supporters during the election.
Will they turn on Elon if he pushes pro-EV policies he'll profit from? Or will they decide EVs aren't so bad if their new pal Elon says so? I'd give slight odds to the latter.