Fans are roaring, the Mac lags, and Activity Monitor shows kernel_task consuming most of the CPU.
Don't panic: kernel_task isn't a virus but a protection mechanism. It "occupies" the CPU to stop other processes from overheating the Mac.
Find the real heat source — usually a third-party process or a browser tab:
ps aux | sort -nrk 3 | head -10Quit the offending process. Check the vents aren't blocked and the MacBook isn't sitting on a blanket.
Disconnect peripherals one by one (external monitors and cheap USB-C hubs especially) — they're a common heat source.
If nothing helps — restart. A persistent issue on the same hardware warrants an SMC reset (Intel) or a service visit.