Remove class attribute after applying styles.