Depends on your risk appetite, regardless of whether you stay in your current company or switch to another, there is a chance you might get laid off in the coming months. But, in my experience, companies tend to layoff new joiners more often than old timers.
That being said, my suggestion would be to switch now and keep some savings with you just in case you are indeed affected by layoffs. Ofcourse, If you are looking for stability more than money, staying in your current company would be more beneficial (for now).
26lpa in 2.5 yoe is not bad at all, although definitely not the best either. You could probably get somewhere between 35-40 CTC if you switch now.