In your iPhone settings, you can choose to delete your Safari history, cookies, cache or a specific website from your history. You can also turn on content blockers.
Go to Settings > Apps > Safari.
Scroll down and tap Clear History and Website Data.

Confirm the timeframe you want to clear, then tap Clear History. This doesn’t change your AutoFill information. If this button is grey, there is either no data to clear, or you may need to check your web content restrictions in Screen Time.
Go to Settings > Apps > Safari > Advanced > Website Data.
Tap Remove All Website Data. If this button is grey, there is either no data to clear, or you may need to check your web content restrictions in Screen Time.
Tap Remove Now. This clears data that’s used for tracking, and by websites to save login information for faster browsing.
Open the Safari app, then tap .

Tap Bookmarks.

Tap , then tap again.

Tap Select Websites, then select one or more websites to delete from your history.

Tap .
If you want to block cookies (data a site places on your device to remember you), go to Settings > Apps > Safari > Advanced.
Turn on Block All Cookies.
Tap Block All. This will remove all existing cookies and website data. Safari quits, and your tabs will be reloaded.
If you block cookies, some web pages may not work. Here are some examples:
You will likely not be able to sign in to a site, even when using your correct username and password.
You may see a message that cookies are required or that your browser’s cookies are turned off.
Some features on a site may not work.
Go to the App Store and download a content blocking app (third-party apps and extensions that let Safari block cookies, images, resources, pop-ups and other content).
Then tap Settings > Apps > Safari > Extensions.
Tap to turn on a listed content blocker.
You can use more than one content blocker. If you need help, contact the app developer.