See these faces:
Face for highlighting Isearch matches.
Face for highlighting failed part in Isearch echo-area message.
Face for lazy highlighting of matches other than the current one.
AFAIK, there is no built-in support for this, but Ivy provides various hooks that you can plug your own logic into. Here is one way to achieve what you want, using the ivy-hooks-alist user option:
'((counsel-M-x (:background "red")))
"Alist mapping Ivy callers to a list of face specs.
Used by `my-ivy-remap-match-face', which ...