On mobile
Open the Settings section and go to the Account and Security section. Tap on the three dots in the screen's upper-right-hand corner and select Log out.
From a computer
Click on the arrow under your photo at the top of the screen and select the Log out button in the main menu.