Make device work for both mobile and desktop

I am using Cocos Creator 3.5 and I want my game to work both in mobile and desktop mode.
I want my game to work in portrait mode when accessed from mobile and landscape if accessed from desktop. how can I make this possible?

You can modify it like this:

But note that the style.css used by web-mobile and web-desktop are different.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.