Welcome to Android Central! What exactly do you see? Is it a popup ad? Is it some kind of ransomware?
Try booting into Safe Mode: https://support.t-mobile.com/docs/DOC-11473. Does the behavior continue? If not, then uninstall apps one at a time until the behavior goes away in normal mode. Or do a factory reset, then go immediately to the Play Store after finishing the Setup Wizard, and prevent any apps from installing automatically. Now does the problem persist?