Same thing happened to us. My daughter learned a lot from YouTube. Then one day I saw her watching this video of My Little Pony (badly drawn) cutting each other with machetes. The recommendations started including lots of these things. SpongeBob committing suicide and stuff.
She has no access to YouTube anymore, which is a bit sad because again there's a lot of good stuff there.