Multiple options on listing- but when one is sold out the whole listing marks sold out

Hi there, I have listings on my website that have multiple size options. When one size sells out, the whole listing automatically shows sold out, even though if the customer taps on the listing, they can select and order a different size. The problem is, customers scroll through the website, see an item marked ‘sold out’ and won’t even click on it. How can I change it so that it just shows inside the listing when the customer selects a sold out size, that it’s sold out, instead of the whole listing being marked sold out just because one size is? Thanks in advance!