Hi,
The Samsung Xpress M2026W is listed in About AirPrint - Apple Support as a printer supporting the driverless AirPrint technology. An AirPrint-enabled model is compatible with macOS, and can be used without additional drivers, provided that the printer and the Mac computer are connected to the same network (Wi-Fi router). AirPrint works with wireless (Wi-Fi) or wired (Ethernet) network connections.
Are you using AirPrint?
Add a printer to your printer list so you can use it on Mac – Apple Support (UK)
Reset the printing system on your Mac to solve a problem – Apple Support (UK)
If there is a problem with AirPrint discovery for one or more devices, and all settings are OK, you could try the following full procedure (in this order):
Power off the Wi-Fi router, the printer, the Mac computer, and all other devices/computers. Wait two to three minutes. Power on the router. Wait two to three minutes. Power on the printer. Wait a minute or two. Power on the Mac computer. Finally, power on all other devices/computers.
Alternatively, are you using the universal driver from HP (Samsung)?
https://support.hp.com/us-en/drivers/selfservice/samsung-xpress-sl-m2026-laser-printer-series/16462610/model/16462614