<!doctype html>
<html lang="tr">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title></title>
<script>
var mobil = (screen.width <= 600)
if(mobil) {
document.location="https://domain.com/1.html";
}
else {
document.location="https://domain.com/2.html";
}
</script>
</head>
<body>
</body>
</html>