This may be because Loop tags are being placed outside of Loops.
NOTE - As the ticketing software provider, we deliver and maintain the ticketing system. We do not provide template design and as such we would suggest going to an external HTML designer for detailed help with HTML templates.
We recommend unlayer for designing HTML templates.
βChatGPT is also very helpful for specific HTML queries.