OpenCV with Test Automation - Resizing template images based on various screen sizes

Hello!
I’m looking to utilize openCV with our test automation framework, which supports both web (selenium) and android/ios (appium). My web case works fine as expected, but when I am running on android i need to resize my template image due to the resolution difference between the resolution /size I captured my template image at (3456x1704), to a screenshot size of 1440x3120

My approach to resizing is to divide the height since the target screen resolution Y-axis is larger, so I get 3120/1704 = 1.83
When i resize the template image up by the scaling factor (using INTER_LINEAR but ive also tried INTER_AREA), it resizes the template image from 138 x 44 to: 252 x 80. However this doesnt result in a match

I tried to manually crop the template image from a screenshot of the android screen, then use that without and resizing and it works, that template size is only ~208x72 , so it feels like it scaled up a bit too much. If i try with a hardcoded 1.5 as scaling factor i get a match.

I’m pretty confused about how to properly scale things, i could have a bunch of different web (landscape) and mobile (portrait) screen sizes, so any advice about how best to scale the template image would be greatly appreciated!!
Thanks