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.