Is there a way to make my Android phone automatically switch to the strongest Wi-Fi network?

My router in my bedroom doesn't have enough range, so whenever I step into the living room, the signal becomes basically non-existent. That's why I have a separate network in my living room so that I can connect to that instead. However, my phone insists on holding on to the weak signal from my bedroom Wifi instead of switching to the stronger network in the living room, so every time I go to the living room (which is quite often), I have to manually navigate to my Wifi settings, disconnect from my bedroom Wifi and then connect to the living room Wifi. And then when I go back inside, I have to do the reverse. This is really frustrating and I'm wondering if there's any setting or app that can fix this. I don't understand why my Samsung phone insists on holding on to the weak signal when there's a better one to connect to.