Hello
How does it loose connections? If it disconnects while in stand by mode, that's normal. If it disconnects at random times while you're using it, I would try to restart a wi-fi router first, then remove the network from the phone, restart the phone and try to reconnect.
Thank you,
Dmitriy