This article explains how to sign out of Gmail on desktop, in a mobile browser, and in the mobile app.
How to Log Out of the Gmail App on an Android Phone
If you stay signed in to Gmail on a device that others use, your account could be exposed to unauthorized access. Anyone with access to your Gmail could reset passwords and cause other problems. To avoid these problems, sign out of Gmail when you’re not using it.
If you forget to sign out after using Gmail on someone else’s device, do it remotely. You can also prevent a device from using your Gmail account if it’s stolen or lost.
Sign out of Gmail on a computer in two easy steps.