A lot of advertisers try to mislead you by saying there is a virus on your phone. I believe Google banned the use of misleading advertisements such as the one you are speaking of. So if it was a pop-up ad, I would not worry about anything.