Is it possible to create an error or warning popup?

I was thinking something similar to this:

error%201

That one’s based on a jQuery UI dialog, but I guess using the Mobiscroll popup I could do something similar:

error

Not sure I like the toast idea because this app will also run on desktop, not just mobile.