You don't want the thermostat inside the tank because the animal can move the probe or affect its reading.
I have a tank for which I had a similar situation - I partially pulled the UTH off, put the probe between the UTH and tank and then used aluminum tape to ensure the UTH was adhered back to the tank. It's not ideal, but it works.