One-time passcodes (OTPs) protect your accounts—but notification previews can accidentally expose those codes to anyone who glances at your phone, watch, laptop, or a shared TV screen. If you’ve ever had a code pop up during a meeting screen‑share, while your phone was on a table, or on a smartwatch raise‑to‑wake, you know the risk. This guide shows how to stop OTPs from appearing on shared or idle screens, reduce SMS‑based risks, and put safer factors in place.
Why Hiding One‑Time Codes Matters
Attackers, strangers, or even people nearby can capture visible codes with a quick look or photo—especially during screen‑sharing, rideshares, checkouts, or when your phone is on a desk. OTP leaks can enable account takeovers, financial fraud, or password resets. Because OTPs expire quickly, you often won’t notice anything went wrong until a transaction or login has already happened.
- Common leak points: Lock-screen banners, notification previews, smartwatch alerts, desktop SMS relays, and email banners in mail apps.
- High‑value targets: Banking, investing, payment, crypto, tax, credit, and password manager services.
- Extra risk with SMS: SIM‑swap attacks, message forwarding, and carrier voicemail resets can expose or reroute codes.
Core Strategy: Remove Previews, Limit Notification Visibility, and Prefer App‑Based Codes
To keep codes off shared screens, combine these controls:
- Turn off notification previews for sensitive apps so messages are hidden until your device is unlocked.
- Silence or block lock‑screen display so alerts don’t appear when your device is idle.
- Disable smartwatch mirroring for financial and authenticator apps.
- Use authenticator apps or passkeys instead of SMS when possible.
- Harden desktop relays (iMessage, Phone Link, email notifications) so codes don’t show on shared monitors.
iPhone: Stop OTP Previews on Lock Screen and During Screen‑Share
Hide Sensitive Previews System‑Wide
- Open Settings > Notifications > Show Previews.
- Select When Unlocked or Never. “When Unlocked” is a good balance for most people.
Lock Down Specific Financial Apps
- Settings > Notifications > [Your Bank/Finance App].
- Turn off Lock Screen and Banners if you want no on‑screen alerts.
- Or leave alerts on but set Show Previews to Never for that app (if available in-app or via system settings).
- Consider Deliver Quietly style: keep alerts in Notification Center only (no lock screen, no sound).
Silence OTPs in Messages and Mail
- Messages (SMS/iMessage): Settings > Notifications > Messages. Disable Lock Screen and set Show Previews to When Unlocked or Never.
- Mail: Settings > Notifications > Mail > Customize Notifications. Disable Lock Screen and set previews to When Unlocked/Never. Optionally restrict to VIP if you receive codes by email and want tighter control.
Stop OTPs From Appearing While You Share Your Screen
- Open Control Center and enable Do Not Disturb or a Focus mode before joining calls or screen‑shares.
- In Settings > Focus, add banks, Messages, and Mail to the Silenced Notifications list for your “Work/Presentation” Focus. Toggle Share Across Devices if you use multiple Apple devices.
Apple Watch: Prevent Glanceable Code Leaks
- iPhone Watch app > Notifications.
- For Messages, Mail, and finance/authenticator apps, switch off Mirror iPhone Alerts or disable Show Alerts.
- On watch: Settings > Notifications > turn on Notification Privacy so details are hidden until tapped.
Android: Hide OTPs on Lock Screen and Shared Displays
Hide All Previews on Lock Screen
- Settings > Notifications > Lock screen (wording varies by brand).
- Select Hide sensitive content or Don’t show notifications on lock screen.
Control App‑Level Visibility
- Settings > Apps > [Bank/Finance App] > Notifications.
- Turn off Lock screen visibility and Pop‑up previews for OTP‑related channels.
- Repeat for Messages and your email app. Many Android email and SMS apps let you hide sender and content while still making a quiet sound.
Presentation Mode: Suppress Alerts While Casting or Sharing
- Enable Do Not Disturb or a Focus Mode before casting or screen‑sharing.
- Some devices have Hide notifications when screen is shared/cast under Developer or Privacy settings—enable if available.
Windows and macOS: Stop Desktop Pop‑Ups From Exposing Codes
Windows 11
- Settings > System > Notifications: Turn Notifications off during calls or set Do Not Disturb while presenting.
- Per‑app: In Notifications, select Mail, Your Phone/Phone Link, or messaging apps and disable Show notification banners and Show content in notifications.
- Phone Link: Open Phone Link > Settings > Notifications. Disable previews or turn off notifications during meetings.
macOS
- System Settings > Notifications: For Messages, Mail, and any OTP apps, set Alert style: None and disable Show previews or set to When unlocked.
- Use Focus (Do Not Disturb) while screen‑sharing: Control Center > Focus > On. Add allowed apps/people as needed.
- If you use Messages on Mac, consider turning off Enable Messages in iCloud or at least disabling notification previews so SMS codes from your iPhone aren’t displayed on your Mac during presentations.
Email and SMS: Reduce Code Exposure at the Source
Prefer App‑Based Codes or Passkeys
- Authenticator apps (TOTP): Use apps like built‑in bank authenticators or standard code generators. These don’t rely on SMS and don’t show up in message previews.
- Passkeys: Where supported, passkeys replace OTPs with a phishing‑resistant login tied to your device biometric or PIN.
If You Must Use SMS or Email
- Set Show Previews to Never/When Unlocked in your SMS and email apps.
- Create a VIP/Important email rule for code‑sending addresses so you can suppress banners while still receiving mail.
- Disable message forwarding rules that could relay codes to shared inboxes or team channels.
- Remove SMS from desktop relays (iMessage on Mac, Phone Link on Windows) if you share your screen often.
Banking and Finance Apps: In‑App Security Settings to Check
- Notification contents: Many banking apps let you choose “silent” or “security only” notifications that omit transaction details and OTP content.
- Login alerts without previews: Keep alerts for logins and changes enabled, but hide content so you’re notified without exposing sensitive data.
- Stronger 2FA: Switch to in‑app prompts, authenticator codes, or hardware security keys if supported. Avoid relying solely on SMS.
Smartwatches and Smart Displays: Close the Side Doors
- Wear OS / watchOS: Turn off mirroring for Messages, Mail, and finance/authenticator apps. Enable notification privacy to hide contents until tapped.
- Smart speakers/displays: Disable calendar, email, and message announcements on shared devices. Avoid linking SMS or email accounts used for codes.
Screen‑Share Safe Practices
- Before sharing: Turn on Do Not Disturb/Focus, close Mail/Messages, and pause notification relays (Phone Link, iMessage on Mac).
- During meetings: Share a single application window instead of your full desktop when possible.
- After meetings: Re‑enable your normal notification settings if needed, but keep previews hidden by default.
Extra Hardening Against Account Takeovers
- Lock screens quickly: Set auto‑lock to 30–60 seconds on mobile and 5 minutes or less on desktops.
- SIM security: Add a carrier SIM PIN and a port‑out/PIN lock with your mobile carrier to block SIM‑swap attempts.
- Email account security: Enable strong 2FA on your main email and hide notification previews—email is often the recovery key to everything else.
- Password manager: Use a reputable manager with breach alerts and phishing‑resistant options like passkeys.
- Monitor for fraud: Watch for unexpected 2FA prompts, password reset emails, or login alerts—these are early signs of takeover attempts.
What To Do If a Code Was Exposed
- Assume the attempt is active: If you saw an OTP appear on a shared screen, immediately regenerate a new code or wait for the old one to expire.
- Change your password for the affected account if you suspect the attacker may also have it.
- Review sessions: Use your bank or app’s security dashboard to sign out other devices and revoke tokens.
- Tighten factors: Switch from SMS to an authenticator app or hardware key. Add alerts for new device logins.
- Watch your credit and identity signals: If a financial account may be impacted, increase monitoring and freeze credit if warranted.
Ongoing Monitoring for Identity and Credit Risks
Even with tight notification controls, it’s smart to watch for unusual financial or identity activity—new accounts you didn’t open, address changes, or sudden credit pulls. Continuous monitoring can help you detect and respond to problems faster, especially after a code, password, or device may have been exposed. For consolidated tools that track your credit, alerts, and identity‑related activity, see SmartCredit for privacy, credit monitoring, and identity protection.
Quick Checklists
Mobile Devices
- Set notification previews to When Unlocked or Never.
- Disable lock‑screen and banner notifications for banks, Messages, and Mail.
- Turn off watch mirroring and enable notification privacy.
- Use authenticator apps or passkeys instead of SMS where possible.
Computers
- Disable notification banners and previews for Mail, Messages, and phone‑relay apps.
- Enable Do Not Disturb/Focus during calls and presentations.
- Share a single application window, not your entire screen.
Conclusion
One‑time codes are only secure when they stay private. By hiding notification previews, disabling lock‑screen and smartwatch alerts for sensitive apps, and favoring authenticator codes or passkeys over SMS, you can prevent accidental exposure during everyday moments and live presentations. Combine these steps with strong account security and ongoing monitoring so even if something slips, you’ll spot and stop trouble fast.
Good to Know
Notification previews can leak full codes even if your phone is locked. Turning off previews and switching to authenticator apps reduces both accidental exposure and SIM-swap risk.