This article explains how to use content blockers to block ads in Safari on iPhones running iOS 9 or later.
ANY iPhone: How do I block ads in the Safari app?
Using an ad blocker for your iPhone prevents your browser from downloading ads. This usually means faster page loads, longer battery life, and less wireless data usage. If you don’t want to see pop-up ads, there is a way to block them. Here’s how to do it using the Safari web browser for iPhone.
Content blockers are apps that add new features that your default web browser doesn’t have. They’re like third-party keyboards: separate apps that work inside other apps that support them. This means that to block ads, you’ll need to install at least one of these apps.
Most iPhone content blockers work the same way. When you go to a website, the app checks a list of advertising services and servers. If any are found on the site you're visiting, the app blocks the website from loading those ads on the page. Some apps take a more comprehensive approach by blocking the ads and tracking the cookies used by advertisers based on the URLs of those cookies.