Some mobile devices or emulators detect gamepad even if there is none

Hello. I’m having trouble with the Unity InputSystem while making a mobile game.
It seems that some smartphones or certain emulators recognize the input device as a gamepad instead of a touchscreen, even when there is no physical gamepad connected.

I tried checking if there is an actual connected gamepad using Gamepad.all or GetJoystickNames, but it didn’t work. How can I solve this issue?

Seems like there was someone having same issue, but I guess this one is not general solution for various cases.
ref) Gamepad controls on mobile are detected even if pad is not connected. This occurs only on 2 devices.

When I asked ChatGPT, Gamepad.current.enabled might be false if there is no actual connected gamepad. How about that?