Hi,
I having some trouble with the ‘data-hero-candidate’ attribute in my homepage’s images. In the mobile version (responsive) of the website’s homepage, the main image is not having the ‘data-hero-candidate’ attribute. Thus, LCP stats for mobile is not good. The desktop version is perfect and gives a 99 score on Google Pagespeed Insights.
Can you let me know how to add the ‘data-hero-candidate’ attribute to the main image in the mobile version? I am using WP Show Posts to generate the section.
The website is: https://bit.ly/3hXwc5l