Why doesn't my Tailwind CSS class contain any value in my custom Shopify theme?

I am using Tailwind CSS for building a Shopify custom theme. But I have faced the problem that my tailwind CSS class does not contain any value in the tag class.

Here is my code —

{% if forloop.first %}
{% render ‘media’, media: media, class: ‘col-span-2’ %}
{% else %}
{% render ‘media’, media: media %}
{% endif %}

The tailwind CSS class is not worked in the tag. But it is working in any div.

How to solve this issue.
Is there any solution?