At the request of @Winteriscoming I will answer your question, but I am afraid that the answer will not be useful to everyone.
In general, the problem is solved with the help of javascript in one line.
document.getElementById("myselect").className += "active-select";
That is, we assign the #myselect selector an additional class .active-select, which sets the highlight.
But, the snag is that this should be done only if the value is already selected in the select. My page uses smarty, therefore, I can set a condition, like so.
<option value="{$vendor.id}" {if $vendor.id == 1}selected="selected" вот сюда добавив переменную {$controller="1"}{/if}>{$vendor.title}</option>
And then execute the script, provided
{if $controller == 1} {literal} <script> document.getElementById("id_vendor").className += "active-select"; </script> {/literal} {/if}
Something like that. I am sure that javascript could somehow track the selected parameter for its presence, and then assign a class. But with smarty, I quickly guessed))