Do these 5 things
- Change the passcode: Settings > Face ID & Passcode > Change Passcode. Use Passcode Options for a longer code (Apple).
- Check Face ID: if Set Up an Alternate Appearance is missing, a second face is enrolled; tap Reset Face ID (Apple).
- Check your Apple Account devices: Settings > your name; remove what you don't recognize (Apple).
- Turn on Stolen Device Protection: away from familiar places, it requires Face ID or Touch ID for sensitive actions and adds a one-hour security delay to changing your Apple Account password (Apple).
- Lock sensitive apps: touch and hold the icon > Require Face ID (Apple).
What someone with your passcode can do
Open the phone, read your messages and photos, open apps locked with Face ID (the passcode is the fallback), and, without Stolen Device Protection, change your Apple Account password. That's why the passcode is the first thing to change.
If they still have access to the phone
A roommate, partner or coworker who knew the code may still be around the phone. WTMP, armed when you leave it, sounds a loud alarm if it's picked up and logs the time, and the alarm stops only with your WTMP passcode, which they don't know.
If the phone itself was stolen, see what to do if your iPhone is stolen.