Most of the times it has something to do with battery saving settings. Disable all for Whatsapp and make sure you are using the latest MIUI update (from here of the official ones) as the older ones do have a lot of issues with this. There are also apps that keep your internet connection awake, but that drains battery so that should be a last resort.