Customize Order Status Page

Hello, I used to display detailed information about the status and dispatch route on my order status page.

I had stored a Javascript code for this, which analyses a tag and displays text accordingly.


{% if tags contains “in Production” %}

This will not work for much longer as the status page will be changed. How can I customise something for this purpose? The documentation says I should install apps for this, but I don’t need expensive apps, just a text depending on a tag.