Go tho your phone app and dial *#*#6961#*#*. Now go to settings -> accessibility -> developer options, and see if “Strict mode” is toggled on. If it’s off, toggle it on and off and reboot. Tell us if it helps.
i did it without dialing the number , only the on/off and reboot part and it seems to work