If you have PC/Laptop use USB charge cable to connect your now dead phone to PC. (idk where the game files are i dont use mobile TPT. edit: idk if they even exist lol)
You can copy the save and settings files from/to "Internal Storage/Android/data/uk.co.powdertoy.tpt/" over USB. Without root this is the only way to access save files directly since newer versions of Andorid (11+) limit access to app data from file explorers.
my phone doesnt even allow opening Android/data folder lol
version is over 11