This video shows how you can sign out of all google apps like gmail, youtube, google photos, google drive etc in one go from you android phone. This video is applicable for android phones like Samsung, Google Pixel etc.
This video shows how you can sign out of the gmail android app in Android phone. Gmail does not provide the option to sign out from within app. For signing out, you need to remove your google account from the phone.