1. Be careful about watching YouTube shorts. If you see something inappropriate click off of it immediately because if you watch the entire video then the algorithm will think you're interested.
2. Click not interested on videos that belong to obscure and weird channels. Even if the video is interesting, once they rope you in you'll get blasted by similar yet weird channels.
3. If you have kids and they watch YouTube make sure they're on YouTube Kids and make sure that you have Family link so you can restrict and monitor what they watch.
I do the above so that anything that shows up on my recommended list are from channels that are legit and rated E.