Hi, I join the problem, that code didn’t work for me.
I think this mismatch of the template in mobile version is due to the ads.
I have a high traffic website and before I had a different template and I didn’t have this problem, a couple of weeks ago I decided to change to GeneratePress 3.0 and that’s when this started to happen. Also in the URLs where there are no ads this mismatch does not appear.
Please ask for help, thank you very much in advance to GP’s customer service team.