Hello,
Do you use a plugin to add compare button? It would be better to contact the plugin authors.
Regards