<script>
  var ua = navigator.userAgent;
  if (ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0) {
    // pcならモバイル用URLへ
    location.href = 'https://m.youtube.com';
  }
</script>
