Using Face ID while wearing a mask requires relatively recent hardware. Consult this list of iPhone models that support Face ID with a mask to see if yours is compatible.
Which iPhones support unlocking with Face ID while wearing a mask?

Using Face ID while wearing a mask requires relatively recent hardware. Consult this list of iPhone models that support Face ID with a mask to see if yours is compatible.
Apple has released iOS 15.4 for the iPhone and iPod touch, as well as iPadOS 15.4 for iPads, bringing new features such as unlocking your iPhone with a mask on.
Apple should release iOS 15.4 in the first half of March following new hardware unveilings as development work on iOS 16, the next major update to the iPhone operating system, continues unabated, according to a reliable source.
Apple's iOS 15.4 lets some users in previously unsupported locations download over-the-air iPhone software updates via 4G LTE cellular networks.
Apple has launched a second iOS 15 public beta, as well as released second betas of iOS 15.4, iPadOS 15.4, macOS Monterey 12.3 and tvOS 15.4 to public beta testers.
Learn how to execute personal iOS automations in the Shortcuts app on your iPhone and iPad completely silently, without ever seeing the annoying notification banner.
Apple with iOS 15.4 has reportedly fixed a Core Animation bug that has resulted in a sub-par ProMotion experience. Now all third-party apps automatically use smooth 120Hz animations on iPhones that feature support for ProMotion display technology.
Apple's iOS 15.4 and iPadOS 15.4 updates, currently in beta, apparently feature support for receiving web notifications in the Notification Center on your iPhone and iPad.
A new feature in iOS 15.4 and iPadOS 15.4 for using Face ID while wearing a mask requires at least the iPhone 12: it won't work on the iPhone 11 and the iPhone X or older.