Automatically add divs to product descriptions in Shopify

I’m trying to add divs to product descriptions in Shopify so that I can then create an accordion. Currently my code looks like this In the .liquid file:

Shopify show stock when quantity is lower than 2

I have built this code snippet for my shopify store to display more information in the dropdown field. With the change, the status is now also displayed next to the size selection. Available or Sold …