Stock quantity displayed on select products only

Hi, I’ve already adjusted code to show my customers my stock quantity on product pages, however I have some made to order items and need to remove this feature for these particular products only.

https://help.shopify.com/en/manual/online-store/themes/os/customize/show-remaining-quantity

I’ve used the above method, but can someone tell me how to adjust this for only select products or collections?

Thank you