To clear YouTube’s cache:
1. Go to your device’s Settings and select “Apps & Notifications.”
2. Tap “See All Apps” and tap “YouTube.”
3. Tap “Storage & Cache,” then tap “Clear Cache.”
4. Restart your YouTube app and check if this solves the lagging issue.