eSIM is available for these phones:

iPhone XR, XS and later (on the latest software version)
To check if there is a software update available, open Settings > General > About Device > Software Update. Before installing an update, we recommend backing up your phone. Download the update over WiFi to avoid using data.
Samsung Galaxy Fold, Z Flip, Galaxy S20 and later
Huawei P40 Pro and later