You can block Yahoo ads on your iPhone by using an ad-blocking plug-in. You can also go to your settings and toggle Block Pop-ups if it’s not turned on.