How To Redirect A Page to another page for desktop In WordPress Without A Plugin

Just add these code to function.php file

add_action(‘template_redirect’, ‘redirect_to_home_from_about_page’);

function redirect_to_home_from_about_page() {

if(( is_page(‘about’)) &&( !wp_is_mobile() ) ) {

wp_redirect(home_url());

exit();
}

}