Unifying topological phase transitions in noninteracting, interacting, and periodically driven systems