how we do this kind of UI is with conditional visibility.
copy the text, and give one a css class that makes it green (alert alert-success)
give the other a class to make it red (alert alert-warning)
its not the greatest way, but it is the easiest “all mendix” way.
additionally you could use the conditional classes widget that can be found in the appstore.
cheers,