How do I add a specific class in a row of a table output depending on a field content?
Two options: 


You alter your view with a View hook and you add to the row class value your own class based on one of the field value
You use this solution, and you can check with twig the actual row content and add a class based on that(use devel module and {{ kint(row) }} to understand how to reach the values you want)