Hi, @lana-mukti
Greetings from the Store Watchers Support Team! Happy to help you today.
You can put this condition:
{% if product.metafields.namespace.key != blank %}
// Put the heading tags within this condition
{% endif %}
Replace namespace with the actual namespace of the metafield and key with the key of the metafield.
You can use this code snippet within the relevant section of your product page template to control the visibility of metafields based on their values. Repeat this code for each metafield you want to conditionally display.
Remember to adjust the code to match the structure and naming of your metafields.
Let me know If need further assistance
Regards,
Store Watchers Support Team