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 ...
To stop Google Chrome pop-ups, head to the "Site Settings" menu, where you can turn on a pop-up blocker.