Hi @Nayan NIKUMBH,
Are you using SharePoint 2019 modern page? The modern experience doesn't support to insert custom page style by insert css and html file. You will need to use spfx to custom your page. You could refer to following solution
https://www.sharepointdiary.com/2020/09/sharepoint-online-inject-custom-css-to-modern-sites.html
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.