Unable to reproduce with your sample script on both a
Samsung Galaxy S6 with Android 6.0 and on a Noname tablet
with Android 8.1.