A single router in the hallway struggles with thick walls and long flats. A mesh system places two or three units around the home and joins them into one network with one name and password.
Look for Wi-Fi 6 or newer, and for units with a wired port if you want to connect a TV or a games console by cable.
Two units cover most flats; three cover a house over several floors. Place them in the open, about halfway between the router and the dead zone.