The warning is a product of Verified boot – manufactures are obliged to
Communicate Verified Boot state to users
… this is detailed in the link and is done by these colour coded Warning screens.
There is a method [HOWTO] Moto: replace the startup screen warning to remove from Moto … you have to dive deep into the device … not sure if I ever saw a method for Google devices.