Gemini currently needs to be on-screen to process your queries but Google is working to remove that limitation for the AI ...
Thankfully, a free Android app solves this problem, and it's the first app I install on any new Android phone that I set up.