When screen goes off on my iPad, the WiFi gets disconnected automatically. How do I keep WiFi enabled? I just noticed this problem is only when the hotspot is made by a xiaomi mobile(which makes a connected chain symbol rather than normal wifi symbol) which is the same type as the hotspot by Apple devices. This problem is not when hotspot is created by other android devices.
This appears to be a common problem. Try these simple steps provided in the first answer here.
Let me know if they work. If not, please, provide me more details about your iPad settings or/and iOS version.