A magnetic mesoporous dual-template MIP was synthesised and characterised.
The magnetic DMIP shows good adsorption capacity and selectivity for CAP and FF.
The magnetic DMIP used as absorbents for M-MISPE of trace amphenicol antibiotics.
The M-MISPE approach was proven to be rapid, selective, sensitive, and reliable.