How can I conceal out of stock variants on a product page?

How do I hide unavailable variant on my product page?
I’m using Taste theme 3.0.1
For example this Magsafe variant is available for iPhone 14 Pro Max

But not available for other products like iPhone X, but its there.

This will be a problem as my product is customizable.
This is the example page https://casedropp.com/products/anime-blinding-sun-personalized-iphone

Do note that I have used an app to fix this problem (in case you go to my website and it has been fixed), but I’m just using it for a while until I can fix this problem, I’m still looking for the method to solve this manually without an app.