In ArcGIS Pro Arcade Expression I can build a variable for an html tag and pass it to the popup window and it works. But when I publish this as a web map, the variable just passes the html tag as dumb text - so much for Arcade being seamless, portable, and application agnostic :-(.
I'm trying to make the background-color of the div red or green depending on the value returned in the filter of the expression.
Here's what the variable looks like (where bg and myDelqTax are variables assigned earlier):
var html = "<div style='padding:8px; color:white; font-weight:bold; " +
"border-radius:6px; background-color:" + bg + ";'>"
+ myDelqTax +
"</div>";
return html;
And here's how it looks in ArcGIS Pro popup:

But when I publish to a web map, this is the result:

Maybe I'm reading this post wrong, but it seems to indicate this might be available at 11.x (I'm at 11.5). And don't get me started on what ai searches returned.
I also tried the "Arcade Expression Options" that went something like this but didn't work in web map:
return {
type : 'text',
text : '<div style="background-color:{expression/expressiontaxBG};"><p>hello<p></div>'
// this property supports html tags
}
Anybody know of a workaround to make an Arcade Expression in ArcGIS Pro that uses a variable holding html tags work in a web map?