Visitors Stuck with the Shopify admin preview bar on my live theme even after publishing it—still showing as preview mode despite clearing cookies and resetting the preview link

Short description of issue

Stuck with the Shopify preview bar on my live theme even after publishing it—still showing as preview mode despite clearing cookies and resetting the preview link

Reproduction steps

I’m facing an issue with the admin preview bar that’s stuck on my Shopify store, even after I published the theme.

  1. I took a preview link for one of the themes (which was in preview mode) and shared it. Visitors could see the admin bar (image #1).

  2. After that, I published the theme as the main theme for the store.

  3. Now, even after the theme is live, the admin preview bar won’t go away, and it still shows as “Preview” mode. (image #2)

  4. When I inspect the page, I can see that the code is still referencing the preview state, and there’s no way for me to fallback to the live theme. Hiding the bar or using pb=1 will just hide bar, but doesnot fall back to the non-preview live theme.

I’ve tried clearing cookies, publishing new themes, and resetting the preview link, but the bar still persists. Previously, I would duplicate the preview theme, publish the duplicated version, and then delete the original theme, which solved the issue. Now not working

Additional info

Loom video Preview bar issue | Loom

What type of topic is this

Troubleshooting
Bug report

Upload screenshot(s) of issue


Hello @Ashwin_Kumar,

I recreated the steps and was able to have the live preview bar by clicking on the View your online store button.

This will force the preview of the live theme on a new tab, which will refresh the admin bar:

In this example, I had the same preview bar as you until I clicked on the button. The previous tab you opened seems not to be able to switch to the live preview bar according to my tests.

Hope it helps !

Hi @teamdijon,Thanks for your prompt response. I appreciate it.

The problem here I see is not just on my browser, but a much bigger level. Let me tell you.

  1. We conducted a split A/B test comparing the live theme with the preview theme.

2. Half of the visitors saw the live theme, while the other half of them were redirected to the preview theme. To hide the preview bad, we added CSS to the preview theme. These sorts of theme-level A/B tests have been done for a long time.

3. The preview theme performed better with respect to the conversions. So we published it as the live theme. However, those who saw the preview earlier are now seeing this preview bar.

Earlier deletion of the preview theme would have made it fall back to the live theme implicitly. Now that is not working

Loom video Preview bar issue | Loom

Please suggest how to clear the cache or make all those visitors who are seeing this bar fall back to the live theme properly (not just hiding the bar)

Hi @Shopify_Themes @Shopify_Expert Any updates would be appreciated.

Hey @Ashwin_Kumar - you should now be able to exit the preview from this menu:

Hi @Misha Thanks for the response.But problem here is not just on one device.

We did a split test of 50-50%. I mean for 50% of our visitors were redirected to this preview link (of course we hide the preview bar using CSS).

Earlier when we were deleting the preview theme it was falling back to the original theme.

Now when we delete the preview theme or making this theme live, it’s falling back to the live theme but with the preview bar shown

Earlier, when we deleted the preview theme, browsers reverted to the live theme. Now, they load the live theme, but the preview bar is shown to about 50% of the visitors on the website, which means they are not excited from the preview mode.