I am currently working on a client-side HTML website, and I would like to add an ASCII-based logo at the top of my page. I am embedding this logo in <pre> tags to preserve whitespace, and it works as expected on desktop browsers. Also resizing in a desktop browser does not throw up any problems.
But when I access my website from an actual smartphone, the whitespace size seems to change and as a result, the ASCII-logo becomes unreadable. Pictures and actual code attached below.
#boot-logo{
margin: 0!important;
width: 100vw!important;
font-family: monospace!important;
color: black!important;
font-size: 1rem!important;
}
<pre id="boot-logo">
██╗ ██╗██╗███╗ ██╗██████╗ ██████╗ ██╗ ██╗███████╗
██║ ██║██║████╗ ██║██╔══██╗██╔═══██╗██║ ██║██╔════╝
██║ █╗ ██║██║██╔██╗ ██║██║ ██║██║ ██║██║ █╗ ██║███████╗
██║███╗██║██║██║╚██╗██║██║ ██║██║ ██║██║███╗██║╚════██║
╚███╔███╔╝██║██║ ╚████║██████╔╝╚██████╔╝╚███╔███╔╝███████║
╚══╝╚══╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝
██████╗ ███████╗████████╗██████╗ ██████╗ ██╗ ██╗ ██╗ ██████╗
██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██╔═══██╗ ██║ ██║███║ ██╔═████╗
██████╔╝█████╗ ██║ ██████╔╝██║ ██║ ██║ ██║╚██║ ██║██╔██║
██╔══██╗██╔══╝ ██║ ██╔══██╗██║ ██║ ╚██╗ ██╔╝ ██║ ████╔╝██║
██║ ██║███████╗ ██║ ██║ ██║╚██████╔╝ ╚████╔╝ ██║██╗╚██████╔╝
╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═════╝
</pre>
Can anybody tell me if there is a fix for this, or if this is just a flaw of the Android webview?
Tested on desktop: Chrome, Firefox, Edge --> all working fine
Tested on mobile: Chrome, Firefox, Samsung browser --> all resizing whitespace

