"Box" bacground color problems in dark themes

I don’t know what is the right name of this “box” item in the frontend but background color of this box cannot follow the dark theme setup when the Lovelace is first loaded and it is causing reaability problem when I select an option from the rolldown list:

image

After a page reloading the box gets the right background color setup:

image

How can I force the right bacground loading at this “box” item?
It is problem at my mobile app and dashboard, because there is no possibility to page refresh in easy way.