I've been rewatching "Frasier" recently, and I was pleasantly surprised to discover that although there are jokes that center on someone being gay or trans, none of them are at the *expense* of the gay/trans person.
That said, the show is really, really, *really* white (#FFFFFFrasier), and it's pretty jarring. I would say I don't understand how nobody noticed, but it was NBC in the early 90s, so I know exactly how nobody noticed.