Providing that your Xiaomi device is newer or the same as the Xiaomi 12T Pro, your phone should be compatible with an eSIM.
To check your device you can follow these steps.
Check My Xiaomi Model
1. Go into Settings and tap the option About phone.
2. On this screen, you can see the Device name.