Providing your Motorola Razr device is newer or the same as the Motorola Razr (2020), 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 down until you see the option "System"
3. At the top of the list you should see the device model/name.