I observed that the text formatting is not shown properly in the hovercard. Text to be shown is formatted as "<math>X</math>". Instead of applying the effects of this markup or ignoring it, the markup tag is displayed as "X {\displaystyle X}". I uploaded an image demonstrating the problem here.
Thank you all for your efforts.