Providing your Sony device is newer or the same as the Sony Xperia 10, 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. Scroll until you see "About Phone".
3. Here you can see the model number and your Xperia ID.