Custom element in cart disappearing when changing quantity

I’ve added a span into cart.liquid, however, when the user changes the quantity of the item this causes the cart to reload and the span I added disappears.

I’ve looked into theme.js and found that when the quantity changes it triggers the updateCart function. What I can’t seem to figure out is where it’s getting the re-rendered cart code from?

If the user refreshes the page after the cart re-renders the span appears again.

Does anyone know where I can change the code that the re-rendered cart is using?

Thanks in advanced

It depends on your theme, posting a link might help.

Thanks for your reply. I can’t send a link right now as it’s still in production/preview mode. Is there anywhere you recommend looking?

Please share a preview link of your store. A possible cause of the issue is cart data is updated via ajax when quantity change.
There might be a snippet with handlebar js or theme.js code