Landscape mode only message on application

Hi All,   I am trying to build an app which is landscape only. So when the device is in portrait mode it should show a text that application is landscape mode only. I managed to hide all items when app is in portrait mode using custom css, but unable to show the message only in portrait mode as it is also part of body and gets hidden. Any workaround to resolve this issue?
1 answers

Maybe implementing something like the solution mentioned here: can solve your issue?