Hello @Rohit_Chhatre1
It might be because of CSS Specificity process executing on live according to which If HTML elements are targeted by multiple CSS selectors of the same specificity, the last one will override the others and only its style properties will apply.
Just to confirm, has it been considered and checked already?