understand eSim offers many different solutions.....was comment on iPhone Android and actual Sim cards. Apologies I have no knowledge about eSims but lots on here will give good advice on this option too to help.the OP
I'm here now on a 60day tourist visa from the London Thai embassy online system. Single entry was about £35 (I used this) and a multi entry was about £180 but Thailand 🇹🇠is big enough for me to see.
Documents and pictures to upload but it's a very simple system that will approve or reject uploads if not correct. Then wait few days for visa email.....print out and keep copy on your phone.