hi @ksh_ingole7 ,
This seems to be an issue with custom component you need to specifically override the CSS for author mode and call that particular clientlib css in author mode only, if you are using sightly do :
<sly data-sly-test.author="${wcmmode.edit || wcmmode.design}"
data-sly-call="${clientlib.css @categories='custom.authorcss'}" >
</sly>
or you can directly add style as :
<sly data-sly-test.author="${wcmmode.edit || wcmmode.design}" >
<style>
// Override the CSS here for particular component
</style>
</sly>