Hello @massimo1971
If you have configured the DropDown field with optgroup, and you want to apply the modifications only to the options in the first optgroup, you must edit the style definition as follows:
.my-list optgroup:nth-child(1) option:nth-child(1){ background: yellow; font-weight:bold;}
.my-list optgroup:nth-child(1) option:nth-child(3){ background: red; color:white; font-weight:bold;}
However, as you noted, the styles are applied only to the control on the desktop browser, and that is correct because the browsers on mobile devices delegate the visualization of DropDown lists to the device’s native controls.
If you want to control the design of this control on all devices, you must tick the “Include a search box (Experimental)” checkbox in the settings of the DropDown control. However, in this case, the style definition must be edited as follows:
.my-list ul[role="listbox"]>li:nth-child(1) ul li:nth-child(1){background:yellow;}
.my-list ul[role="listbox"]>li:nth-child(1) ul li:nth-child(3){background: red; color:white; font-weight:bold;}
Best regards.