Text this: Probing galaxy evolution by unveiling the structure of massive galaxies across cosmic time and in diverse environments