Hide ssid problem

Mobile phone on android 10 doesn’t see wifi with hiden ssid. If I turn wifi on normal mode, it’s okay. When it phone was on android 9, he saw a hidden wifi on another router (Dlink). What could be the problem?
Router - hAp ac2
Phone - Xiaomi A2 Lite Android 10

If SSID is hidden, then client device doesn’t see it. Period.

How it does work is as following: after client device successfully registers to SSID, it’ll keep info about AP (SSID, BSSID, PSK). When it sees AP with same BSSID (which is usually MAC address of AP’s wireless interface), it’ll know its SSID even though SSID might be hidden now. In this case device might even show SSID but that doesn’t mean it’s broadcast in wireless beacon.

It could be that some devices only “remember” single BSSID per hidden SSID. In this case device might have problems roaming between APs belonging to same (hidden) SSID and/or re-registering to such network.

First, turn on network hiding on MT and then manually connect the phone to the network.
When connecting in their advanced settings there is something like “Connect to hidden network”, check this option and it works.