Musk wanted bros and rednecks and meat-eating red-blooded Americans all alike to think a Tesla is cool. Actual environmentalists would follow suit regardless as a captive market - waste no effort on them.
And I think he sees Twitter the same way. Twitter's core demographic is a captive group of left-leaning educated users. If he can successfully flip a switch to appeal to everyone else in America, and hold on to enough captive current users in the process, he will have successfully grown the pie.
I don't actually know if this is Musk's blatant strategy or if he is "crazy like a fox". But Musk has engaged in conservative-leaning flame wars for several years at this point. However, he just recently admitted to casting his first vote for a Republican this election cycle.
That means during all of those years he was saying flamboyant things and meeting with Trump etc, he was largely saying one thing and doing another.
So I'm leaning towards the idea that he is a bit more coy than he lets on and sees political drama as a sort of business asset.