XWIKI-10589: Flamingo does not scale on phones.

(cherry picked from commit 25acbdfe6af0f04fbb58596871b6508893f570ca)
XWIKI-10589: Flamingo does not scale on phones.

(cherry picked from commit a55c1b9dbc0cb5568c9345cbaa8370c33a10f26b)