You could try an esim, I've used airalo twice.
https://www.airalo.com/thailand-esim/dtac-thailand-unlimited
$20US. Pre-installed before I fly and switch the settings over to disable data on my primary sim before i put my phone in flight mode.
(Just read the earlier posts, can see it won't work for you with a locked phone)