We found that a downwardly concave entanglement evolution of the ground state of a two-electron axially symmetric quantum dot testifies that a shape transition from a lateral to a vertical localization of two electrons under a perpendicular magnetic field takes place. Although affected, the two-electron probability density does not exhibit any prominent change.