First, you'll need to update your iPhone's operating system to iOS 26, which is available to the iPhone 11 and newer models.
Apple has introduced a new call screening feature for iPhone users to combat nuisance calls. This tool, part of the iOS 26 update, allows users to screen calls from unknown numbers.