a higher quality mortar will improve your chance to get a successful result as it will add 1 more line that grants you a potion (your picture shows you only have 2 lines where it will be a success)
but it needs to match within these lines - if it matches outside the red mark it wont work