Prevent scroll padding from being applied on desktop

I want the scrollPadding config option to be enabled. I want padding-bottom: 290px to be added to .scroll-content when an input box gains focus. However, the issue I’m facing is that this padding is applied on platforms that don’t have an on-screen keyboard. After skimming through the code, it seems to apply regardless of the platform.

How can I fix this?