Hi @Sriga2898,
Are there any possibilities where you can set flag and check if the API returns empty or null value?
In this way I believe, we can render div tag based on condition.
eg in HTL -
<sly data-sly-test="${api.value}">
........
</sly>
Hope that helps!
Regards,
Santosh