Providing that your Samsung device is newer or the same as the Samsung Galaxy S20, your phone should be compatible with an eSIM.
To check your device you can follow these steps.
Check My Samsung Model
1. Go into your settings and scroll down to the bottom where you will see the section About phone.
2. Tap on the About phone section.
3. You should be able to see your Device Model here.