Hi there gulu274,
You can't cancel or remove this alert, however you can check the parts and service history:
With iPhone 11 models and later, excluding iPhone SE (2nd and 3rd generation), using iOS 15.2 and later, you can go to Settings > General > About for the parts and service history of your iPhone. You can also find out if the display has been replaced. If the repair was done using genuine Apple parts and processes, "Genuine Apple Part" will appear next to Display.
For more details about this specific alert, have a look at this information:
An Unknown Part message will appear if the display installation is incomplete or if the display:
- Was replaced with a nongenuine display
- Was already used or installed in another iPhone
- Isn't functioning as expected
An additional message might appear that says "Apple has updated the device information for this iPhone." This means that Apple has updated the device information maintained for this iPhone for service needs, safety analysis, and to improve future products.
These messages don't affect your ability to use your iPhone.
Have a look at this support article to learn more: About genuine iPhone displays
Take care.