To view an email's headers in Gmail, open the email and click on the three vertical dots (More options) next to the reply button. Then, click on "Show original." This will open a new tab displaying the full email headers. Copy these headers and paste them into a Gmail Header Analyzer tool for detailed analysis.