HTML:iframes comes from infected websites…it will usually redirect you to a new site that may download malware or give you porn popup etc

so if you empty the cache and avast does not detect anymore you should be fine

did you run a quick scan with malwarebytes ?