Hide unavailable variants in craft theme

Is it possible to hide unavailable variants with the Craft theme?

I had my shop built for me, but I’m struggling with this one issue mostly.

A lot of my items have two drop down options. One being type of item and the other a size guide. Different types of items need different sizes. You can see what I mean in this photo:

Is there a way to hide the ‘unavailable’ options?

I’ve tried using the HiVar app but it doesn’t seem to work

I have tried many a recommendation on this and it still isn’t working so I’m wondering if I’ve uploaded my variants wrong?

I’ve grouped them by style then added the size variants that apply to each style. Is this incorrect? I’m really stumped and just want a smooth running and cohesive store.

Thanks

Hello

Add condition under product-variant-options.liquid file
{% if value.available %}
{% endif %}

Hi,

With Stamp – Variants on Collection, you can easily manage what shows in your collections.
If a variant is out of stock or doesn’t have an image, you can hide it with one simple setting.
And full control, you can manually hide specific variants in any collection with just one click.