How to avoid the rotation of the horizontal and vertical screen at the mobile end

because we are currently preparing the vw vh layout method and vertical screen application, but a horizontal screen equals to the exchange of vw and vh, and the interface is deformed. How to avoid this situation?

Mar.16,2021

  1. title and description are two issues.
  2. currently can perfectly avoid rotation (that is, forced horizontal and vertical screen), the only solution I know is Canvas (available in the adaptation mode of many game engines); non-Canvas can only monitor screen-proportional media adaptation (CSS) or monitor resize event (js) to identify screen rotation, and then rotate the content together to achieve (simulate) lock horizontal and vertical screen.
  3. there are two more units, vmin and vmax,.
Menu