I've seen them placed inside and under tbh .. The probe can be dislodged if it's inside although it can be hot glued in place - this is a common method for wooden vivs .
For glass tanks and RUBs it's easier and generally regarded as better to put it under / outside as already suggested.
Sent from my iPhone using Tapatalk