A new polymeric sensing material acts as a smart label for the fluorescent detection of Hg2+ and MeHg+ in fish samples.