If you buy a xiaomi phone from within China, the OS that comes with it has tons of ways to push ads to you. Every preinstalled app, even the settings app has ads in it, and most of them cannot be disabled without some struggling, even if you managed to disable them, often times they will just come back afterwards.