Providing that your Apple device is newer or the same as the iPhone XR, your phone should be compatible with an eSIM.
To check your device you can follow these steps.
Check My Apple Model
1. Go into Settings then General and tap on About.
2. You should be able to see your Device Model here.