You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the tag
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
This has partially resolved the issue. However if I swipe left on a product page on a mobile I still have the grey Product comparison formatting running up the side of the page. My product breadcrumb also spills out onto this from the website. Would you know how to resolve this also please?