You can use parental controls to limit what you can see: on iOS for example, go to
Settings and tap Screen Time. Tap Content & Privacy Restrictions, then tap Content Restrictions.
You can also block certain URLs from your phone, and also turn on child safety functions on your phone, e.g. safe browsing on google, it's something along the lines of "safesearch" which you can turn on in settings, good luck!