There is no OOB feature to set a Notification / Message on Portal Pages.

We can create a custom Notification entity to create your notifications

in the Portal Header Web Template (after the profile navigation menu), can add a FetchXML to retrieve this records and show a bell icon (or any custom icon)