I'm also looking for a solution to this. I have my portfolio as Hover: Follow Cursor on desktop, but wish to change it to Grid: Simple on mobile. I pasted the code above into the Code Injection - Header section but it did not work
My page is linked below
https://www.markgregory.com.au/stills
Password: Jumpman24