Staircase to higher-order topological phase transitions