Debug New Order Notification with if conditions

I am trying to show within a New Order notification whether an item is possible of being shipped next day or not. The customer should have to choose next day shipping first for this to even trigger at all but if they do then each line item should display Next-Day item or Not Next-Day item dependent on whether each product is tagged with Next-Day or not. The below mechanics work in Shopify Flow but not in this notification and I suspect the variables are worded incorrectly. Please help debug the below.

{% if order.shippingLine.title contains "Next Day" %}
{% for line_item in order.line_items %}
<br><br>
<span class="muted" style="text-align: left; font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 1px; font-weight: normal; text-transform: none; color: #e62026;">{% if line_item.variant.product.tags contains "Next-Day" %}Next-Day item{% else %}Not Next-Day item{% endif %}</span>
<br>
{% endfor %}
{% endif %}