How to limit the maximum size when using vw as the mobile layout unit?

what I think of is to cooperate with vw and rem:

html {
    font-size: 10vw;
}

other units use rem

what"s a good idea if you don"t use rem,?

Css
Oct.22,2021

, that is, according to the screen size, cooperate with the media query

Menu