No. You're seeing people who only see the world in black-and-white or us-vs-them. It's extremely unsettling for people, like myself, who rely on people like that for support. It's why it is that if you hang out in LGBT spaces - especially for people who are trans, enby and/or a-spec (asexual, aromantic and/or agender) - you'll see memes about false allies; people who claim to be allies, but only because your political views align with their own. Because if your own views or philosophies don't align with theirs then they'll drop you like a rock.
Again, I haven't looked deeply into the mayor's prior political views, I've mainly looked through articles covering their death, so it's totally possible that they themselves held bigoted views. Nor have I been able to figure out if they held office before they started expressing themselves online (it looks like they deleted their accounts before they died), because it's totally possible they held office before discovering themselves and didn't know how to get out of their position (inb4 "just move lul" or "just swap political parties, lul ecks dee"; if the former were that easy I wouldn't still be stuck in Texas, and the latter is a great way to get yourself killed in our current political climate). However, to effectively say they deserved it for being trans and republican while stopping just short of saying such, really reeks of disgusting false-ally bullshit.
Edit: actually, after looking through some of their posts, at best they're just shit-stirrers, at worst they're just hateful, angry, and taking it out on everyone else.