Is it possible to create an error or warning popup?

Would a snackbar help?

You can add an action to it, or you can use a toast, that doesn’t have an action

Both support the danger, warning … color presets.

If you want a more complex alert, you could use the Sass variables, or change the theme variables on the fly. Can you share a mockup or screenshot about the outcome you’re looking for?