If a user is a small screen device, there are many situations where they will never see an error message.
I referred this link Usability issues with error/notice/success messages. But do not get any answer
- if they're on the "Shipping" step of the checkout process and an error message is added, they may not see the error message get added to the top of the page.
- My suggestion would be to either smooth scroll the user up to the error message, display the error message next to the button.