When exposed to bacteria or minerals, the blue toilet cleaner turns pink, indicating a chemical reaction or contamination.