Providing your Xiaomi device is newer or the same as the Xiaomi 12T Pro, then your phone should be compatible with an eSIM.
If you would like to check this, you can do so by following these steps:
1. Go into Settings.
2. Click the option "About phone"
3. On this screen, you can see the "Device name"