Cloudflare ignores/removes some parts of the frontend code every few days

I have a problem with Cloudflare - it occasionally breaks the front end of the website, and it happens every few days. It eliminates or ignores some parts of the frontend code (Next.js).

It happens in multiple places. For example, the Navigation bar has multiple links in the account dropdown (Account Info, Portal 1, Portal 2 and Sign Out), but after a few days, only one link (Sign Out) is shown. Also, some internal APIs from the backend (Django) are not working.

After I purge the cache (Purge Everything) on Cloudflare, it works fine for the next couple of days.

I tried to disable Auto Minify on Cloudflare, but the issue is still there.

Thank you in advance!