This would be like commenting on censorship/non-free speech laws that you’d solve it for yourself by using Tor or some other anonymizing method. That would not solve the problem of a society which will lack free speech, and if a society did not have free speech, you would have problems, even if you’d manage to somehow get free speech for yourself.
So anything in the cloud (e.g. webmail) is off limits unless you download to your phone.
Legally they are only allowed to inspect what you are bringing into the country, so stuff in the cloud is out-of-scope.
It’s an open question about whether they can compel you to decrypt anything or get you to unlock. They could always seize to inspect later though.
It could probably be implemented as a one-click service on some devices.