There is a built-in tool, but Safari extensions are better This article explains how to block ads in Safari on iPhones using content blockers. Your phone must have iOS 9 or higher to use content ...
For productivity, entertainment, and simply a better user experience, look to these services that don't cost a thing.