When I connect the internet and open any app, a pop-up ad appears randomly.
Ads are still showing, although I did factory reset the phone (all installed apps removed) as well. I also tried to remove the malware app with Avast. Avast detected the issue as well. But couldn't able to remove as well. I uninstalled the malware app which Avast detected. The malware apps installed automatically with another name after uninstalling it.
How can I get rid of that annoying issue?
Some screenshots of that issue have attached here.