Envoyer la notice par courriel: Categorical symmetry and noninvertible anomaly in symmetry-breaking and topological phase transitions