iOS 9 and up allows 3rd party ad blockers in the Safari settings. I use Ad Block Plus. Plus there is a browser from the same group that can be used instead of Safari.
It does not filter mail but it may prevent access when clicking on an ad link in an email.