Please enable JavaScript
In Salesforce Lightning Experience, we can use "Rich Text" standard component on the Lightning Record Page to display or show error or warning message at the record level. Blog Post: https://www.infallibletechie.com/2024/07/display-warning-messaging-at-record-level-in-salesforce-lightning-experience.html