Home › Forums › Support › On Mobile How to Force specific page to Desktop Mode This topic has 5 replies, 2 voices, and was last updated 1 year, 7 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts August 26, 2022 at 5:35 am #2324512 Maggie Hi team, Example when I’am on mobile, how to force specific page to Desktop Mode. Is this possible, and how? Thanks. August 26, 2022 at 6:06 am #2324548 DavidStaff Customer Support Hi there, you can use the generate_meta_viewport filter in a PHP Snippet: https://docs.generatepress.com/article/generate_meta_viewport/ For example: add_filter( 'generate_meta_viewport', function($meta) { $meta = '<meta name="viewport" content="width=device-width, initial-scale=1">'; if ( is_front_page() && is_home() ) { $meta = '<meta name="viewport" content="width=1024">'; } return $meta; } ); This will set the viewport to a width of 1024 on all devices for the Home Page. If you can share a link to the page you want to apply it to, i can update the code to work for it. August 27, 2022 at 9:11 pm #2325894 Maggie Here’s the link https://purlp.com/watch-pba-basketball/. This is what is do, but its not working. please give me a detail instruction. Thanks. August 28, 2022 at 7:44 am #2326181 DavidStaff Customer Support Ok, so that is a single post, so you can use the postID to specify that post. Change the PHP Snippet to: add_filter( 'generate_meta_viewport', function($meta) { $meta = '<meta name="viewport" content="width=device-width, initial-scale=1">'; if ( is_single(11958) ) { $meta = '<meta name="viewport" content="width=1024">'; } return $meta; } ); August 28, 2022 at 5:19 pm #2326637 Maggie Thanks David it works. August 29, 2022 at 1:29 am #2326850 DavidStaff Customer Support Glad to hear that ! Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In