If you are using an iPhone, you can use the "Content and Privacy Restrictions" tools under iOS and iPadOS' Screen Time feature to block and restrict adult and inappropriate content while web browsing.