I agree with the overall point, but the reason I focus so much on anti-LGBTQ campaigns:
It's been a common point of discussion in this thread, trying to paint it as an advantageous strategy for the Dems or rather pretending trans people were a significant deciding factor in last year's elections.
Data consistently showed that this isn't true. With Mamdani we can clearly see that he got fantastic numbers from queer voters. In other words:
There's no group of voters out there that would normally vote blue but voted for Trump instead because the Dems were too trans friendly. There is no gaining votes as a Democrat by demonizing trans people. No conservative or moderate would change their vote based solely on that. Holding steady, being an ally and supporting LGBTQ minorities will get you their support though. Given how close some of those races have been over the last few years I think it is vitally important to keep that in mind, especially with Newsom's problematic views and a potential candidacy in 2028 in mind.
TL;DR: The Dems need to stop throwing minorities under the bus and should instead focus on the working class and the economy.