What the messages mean
"Outdated client! Please use 26.1" means your game is older than the server. "Outdated server! I'm still on 1.21.11" means your game is newer. Either way, the versions must match.
Fix it as a player
In the Minecraft Launcher, open Installations, create a new installation, pick the version the server asks for, and launch it. You can keep several installations side by side. For modded servers, update the modpack instead.
Fix it as an owner
Install ViaVersion so newer clients can join an older server, and ViaBackwards so older clients can join a newer server. This ends most version complaints, especially in the weeks after a new release when players update at different times.
Alternatively, update the server to the latest version once your plugins support it.
Bedrock players
Bedrock clients update automatically on most devices, so Bedrock servers and Geyser need to keep up. If Bedrock players see an outdated message on a Geyser server, update Geyser; it usually supports a new Bedrock release within days.