eSIMs are compatible with many Apple devices. If you are unsure whether your device is compatible, provided you have an Apple device newer than the iPhone X (released in November 2017), an eSIM should work.
To identify your device model, follow these steps:
1. Go to Settings > General.
2. Tap "About".

3. Find "Model Name". Here you will see which iPhone model you have.

If you get stuck, look at the device model support page: List of device compatibility