백엔드에서 테마의 head 태그에 JS 코드를 추가했는데, 이제 백엔드에 접근할 수 없어 코드를 삭제하지 못하겠습니다

I have added some js code to theme head-tag from the backend. the code contains a loop that is running to infinite. when I load the page I can only see a blank page loading.

I want to delete the code from the theme head-tag file.
Please, guide me on how can I access theme files from the backend or database what ever possible. Currently I only have access to admin pannel.

Safe mode should allow you to access the admin panel

Yes, I can access admin now using safe-mode.

Thanks, David You saved my day. Wish you a great day ahead