This question already has an answer here:

i want change styling of pre-built components of LWC is there any approach/method

marked as duplicate by salesforce-sas, Derek F, sfdcfox, glls, Vijay Ganji Oct 1 at 11:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.