Welcome to Android Central! The best thing to do is to avoid those sites, since certain sites are more likely to be infested with annoying ads like that.
Otherwise, you could try some of the various ad-blocking browsers that are available on Google Play, or an ad-blocking extension for the Firefox browser.