Alert messages should have the same visual style, appear in the same places and in the same manner through your website.
Why it matters: Having consistent alert messages means the users will always understand what deserves their attention. Not being consistent with the alerts would bring the extra mental load to your users every time a new alert pops up.
How to test it: Make sure that all alert messages have the same visual style and their positioning is similar or identical.
Check this example: