If you have a desktop just buy a bigger antenna. If you have a laptop, just buy a an external WiFi card and attach a bigger antenna to it. If you only have a phone, then you're shit out of luck. (I suppose that you could find an external WiFi card with Android support, plug it into the USB-C port, and then attach a bigger antenna to it)
Usually when someone says "apartment wifi", it's a few wireless routers spread around the complex with no access to the ethernet ports. Which is why it tends to be shitty if your unit isn't close to one. Hence why you need a bigger antenna.