If your device is network locked, meaning it can only be used with a specific carrier's network, you will not be able to use an eSIM. You must have an unlocked device to be able to use eSIM.
There are several things you can do to get your device unlocked:
Contact your carrier: If your device is locked to a carrier, the first step is to contact that carrier and request that they unlock your device. They may have certain requirements or fees associated with unlocking the device.
Use a third-party unlocking service: There are also third-party unlocking services available that can unlock your device for a fee. However, be cautious when using these services as some may not be legitimate or could cause harm to your device.
Purchase a new device: If unlocking your device is not an option or is not cost-effective, you may need to consider purchasing a new device that is compatible with the carrier you want to use.
It's important to note that not all devices can be unlocked, and even if they can, unlocking may void the device's warranty or cause other issues. Therefore, it's best to research and consider all options before proceeding.