To logout of your Gmail account on other devices on your iPhone, you need to open the Gmail app. Then, open the Settings panel and go to the General Settings section. Next, you need to change your password of your Google account. As there is no direct option for mobile users, this is the only method.