Hello,
Please follow these steps:
Navigate to WooCommerce > Settings > Products > Inventory
Disable the option “Hide out of stock items from the catalog” if you want to hide the out of stock products from catalog.
If you want to show out of stock label, Then go to Products > All Products > Edit product > Product data > Inventory
– Enable Stock management (if needed)
– Set the Stock status to “Out of stock”
Once configured, the “Out of stock” label will display automatically on the product.
If you would like to change the stock label design, you can adjust it in:
Theme Settings > Single product > Elements > Stock status design
Best Regards