Hello,
I have found a solution for this problem cause I have a HTC One mini 2 and I have the same issue like you.
1st of all where is your router positioned in the house, if you are happy with it's place and you don't wont to move it follow this step.
Go to your phone settings - wi-fi - 3 dots...