HI @Sanj123
You can add additional css which doe snot hide the component in the EDITOR mode
example
/* Edit Mode */
.aem-AuthorLayer-Edit .my-component {
display: block;
}
/* Preview Mode */
.aem-AuthorLayer-Preview .my-component {
display: block;
}
/* Layout Mode */
.aem-AuthorLayer-Layout...