You gotta read and watch some old books and films that aren’t 100% modern politically correct. I’m not saying you should agree with everything in them but you need to learn where genres came from to understand what those genres are doing today and where media deconstructing old tropes is coming from.
Also, more often than you might think, they’re not actually promoting bigotry so much as “didn’t consider all the implications of something” or just used words that were polite then but considered offensive now.
Kill the censor in your head.
When we choose to avoid history because it's Problematic or Says Bad Things, we are choosing to divorce ourselves from understanding how we came from that time to this one, which makes it even more likely for the cycle to repeat, with no one but a few people with shelves of old books aware that it's happened before.