Unifying topological phase transitions in non-interacting, interacting, and periodically driven systems