Answer
Wherever you click, you discover haram content. How do you find entertainment that is free from nudity and vulgarity and is beneficial?
Prepare a playlist with the content you find acceptable. Use that one to avoid random pop-ups here or there.
Find a list online—on parenting pages, for example—and prepare your own list mixed with good Islamic content.
You can also check according to your hobbies, goals, and learning interests and explore what is available and beneficial.
And remember, entertainment is not necessarily online. What other options do you have?
Check out the full advice here.
***
Disclaimer: The conceptualization and recommendations stated in this response are very general and purely based on the limited information provided in the question. In no event shall AboutIslam, its counselors or employees be held liable for any damages that may arise from your decision in the use of our services.