Place an icon before field label based on custom css class

Would it be possible to place an icon before the field label when I assign a custom class to a field.

I have this:

.myExcla::before {
content:url(‘myurl’);
}

but this puts it right before the field. How can I make sure it appears before the field label?

Thank you