That’s honestly the best course of action imo. You can’t just block everything from the internet and some things are products of their times. However, seeing it and understanding why it’s bad seems best especially for kids. I don’t think it’s enough to know that something is bad, one should know why it is.
There’s this Community episode that has “black face” (a character paints himself black to be a dark elf) and was called out for doing a hate crime by everyone in the room; this episode was pulled off of Netflix and I don’t understand why. It’s not like it was portraying it as something okay to do. In fact, it was very clear that it’s something you shouldn’t.