Google’s John Mueller answered an Office-hours hangout question about what to do about web pages for products that are temporarily out of stock. The person asking the question wanted to know how to balance concerns about SEO with the user experience of users who may not like a page with out of stock products.
Temporarily Out of Stock Products and Poor User Experience
Many merchants are suffering from supply chain issues and are having difficulty keeping products in stock. Showing site visitors a web page full of products that are temporarily out of stock is a bad user experience.