overflow-y: scroll
-webkit-scrollbar
html { overflow-y: scroll; } @media screen and (max-width: 768px) { ::-webkit-scrollbar { width: 0; height: 0; } }
縦スクロールバーの強制を実現するテクニック、overflow-y: scrollを使うとまったく動的に変化しなくなる。