He wasn’t offside if he didn’t play the ball. The defender clearly tracked Salah and so can’t argue he interfered with play.But he was clearly off in the same phase.
I don’t make the rules, chief, but that’s been pretty standard for a while now, like it or not.