Thermogeometric phase transition in a unified framework