How to login when required gateway is on

I have set up a policy for require gateway and when a device try to access warp or try to access the application behind teams they get denied even when the doh domain is added in warp dns settings and chrome settings. Note that warp for teams is not being used as we can’t login only way is remove require gateway and then use