The main idea is to check for the user-agent
whether it tells if the user is viewing from a mobile device or not.
a simple one liner:
function isMobileDevice() {
return (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1);
};
this function will do the job, it will return true
if the user is using a mobile device, you can use this function to disable the onHover
functionality you have.
maybe something like this:
onHover={() => !this.isMobileDevice() && this.showMyPopUp()};
If you have implemented the hover
thing in a different way and you are unable to use that function with it, post a comment and I will help.
After disabling the popup, you may use a simple and obvious <p>
hint below the button to tell the user what you want.