Not just a theory. Elon himself mentioned it.A popular theory is that his transgender daughter abandoning him is the reason Musk went full wignat - dude used to be a democrat (just like the majority of the billionaires out there).
View: https://www.youtube.com/watch?v=HKpsnjJOX9I