question about computer viruses


Over the past few days, I've been getting ads popping up on sites that say they are not affiliated with the site... particularly on and Can someone tell me if it is a virus and if there is something I can do about it?
screenshot of example:

Thank you!