I have had the same issue on LG G5 and LG G6. I finally found the root cause of the issue. no need to reset the phone. I used to reset the phone so many times then after installing my applications, the ads would pops up again especially with plugging...