how to redirect users to certain page based on screenwidth code example
Example 1: if screen grater than redirect to other page
<script type="text/javascript">
function redirect() {
if (screen.width <= 950) {
window.location = "https://www.google.com/";
}
Example 2: if screen grater than redirect to other page
<script type="text/javascript">
$(window).on('load resize',function(){
if($(window).width() < 950){
window.location = "https://www.google.com"
}
});
</script>