Test beside the router
Run a speed test next to it, ideally with a cable. If that is slow too, the issue is the line or the plan, and a new router won’t help.
Move it
Wi-Fi weakens through concrete, metal and water. A router in a cabinet at one end of a building is working against the walls. Try a central, open and raised spot.
Look at the channel
In apartment buildings many networks share the same channels. Using 5 GHz nearby, and a quieter 2.4 GHz channel further away, can help.
Then think about access points
For several floors or thick walls, a second access point connected by cable is usually better than one powerful router.