Please refer to the following steps to hide errors and warnings displayed on your website from cPanel.
1. Log in to cPanel.
2. Click on the Select PHP Version option on the Software panel.
3. Click on the Options tab.
4. At the display_error option, untick the box if you want to disable/ hide the errors and warnings displayed on your website. Tick the box if you are looking to display the error on your website.