Whooo boy, talk about opening up a can of worms here. Though I'll say, as dicey a question as it is, it's one I've thought about with my own writing. On the one hand, I want to stay true to the original vision of my work, on the other, I want enough people to enjoy it enough that it not only gains popularity, but feels easily accessible to a large demographic.
Ultimately, at least this has been my experience, there's no such thing as omnipandering. I've never heard of a universal story that's beloved by all races, genders, socio-economic classes, and demographics on planet Earth. At some point, your art is going to appeal to one group more than others. The thing is, that's not necessarily a bad thing. Appealing to a niche audience can really work in your favor if you do it right.
That said, I always strive to make my work "inclusive". That doesn't necessarily mean I'm pandering to everyone. Not only does that sound impossible, it sounds highly impractical as well. But what I CAN do is strive to not exclude anyone from my work. By that, I mean, I do my best not to incorporate themes or ideas that make potential readers feel excluded, appropriated, or needlessly offended.
Ultimately, there's still going to be people who just flat out don't want to read my work. And that's totally fine. I can't appeal to everyone. I'm fully aware of that. If someone doesn't like Darker Fantasy, they're not gonna like my writing. If they don't like heavy romance and sexual themes? They're not gonna like my writing. Instead of trying to please everyone, I instead work to "include" everyone. Even if my writing isn't something someone personally enjoys, I still strive to make it accessible to all readers.
Ultimately, I'm not perfect. Far from it. And whether or not my writing will actually succeed in that is entirely up to the readers. But that's always been my goal with every project I've ever worked on.