Yes, you can Earthing product on TOP of a magnetic mattress pad.

Magnets will not interfere with grounding and may even help the electrons involved in grounding get distributed faster in the body.

Do NOT place the Earthing® Mat under the magnetic mattress pad. You will lose the grounding effect.