Switch template doesn't work on Safari

Your screen shots show that you have at least one custom template created. Otherwise, you would not have the button. Presumably, the first screen shot is the default template and the second is the custom one. Your problem is that the code for the custom template is not correct.

Old view templates used HTML. Current templates use Liquid templating language, which shares some but not all characteristics and syntax.

To create a functional template, follow procedures described here: [17.6.0] New workflow for custom templates. Then modify the default code to obtain the specific characteristics you want. Guidance on Liquid can be found here: Liquid template language.