Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.
Likely causes
- A recently installed app shows ads over other apps
- An app has permission to display over other apps or show pop-up windows
- A website was allowed to send notifications in the browser
Steps you can try
Did that fix it?
Great! If the code comes back, repeat the same steps from the start.
If the steps didn't help, don't push further. See the help section below.
When to get help
If ads continue even in safe mode, they are not coming from a downloaded app; check the system ad settings in the ads guide, and contact Xiaomi support if something still looks wrong.
Differences between versions
The safe mode button sequence can differ slightly between models; restarting normally leaves safe mode. Safe mode can remove some home screen widgets, so take a screenshot of your home screen first. Do not install “cleaner” or “ad blocker” apps; uninstall apps you do not need or that did not come from Google Play.
Sources
This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.