Can I manually mark a frame as an icon?

I have a problem that figma does not automatically recognize my icons when they contain text. So in dev mode, the developer can still select the layer below. If I could manually mark the whole frame as icon, then this would not be a problem.