iPhone settings
In Settings → Cellular, give the lines distinct names. Under Cellular Data select your travel eSIM. Turn off Allow Cellular Data Switching to avoid using your home plan for data.
Return to the list of lines. Disable data roaming on your usual line. Open the travel line and set roaming as instructed by its provider.
Android settings
Open Settings → Network & internet → SIMs. Select your travel line for data and your usual line for calls or messages as needed. If automatic data switching is available, turn it off to keep your chosen data line.
Check roaming for each SIM separately. Menu names vary by Android version.
Check your home carrier’s terms
Selecting an eSIM for data keeps calls and messages available on the usual line. Ask your carrier about incoming and outgoing charges abroad. If you don’t need your number, temporarily turn off the line in settings and turn it on again when you need a text.