If you want to talk about a possibility or something you would like to be different you can say “If I were taller”, “If you were faster”. You use the verb in past tense. Is it correct?
But what about the following?
If this app worked in this way, I would like it more.
I don’t know but the above sentence sounds kind of weird for me. I don’t know if it’s correct or not.
You are talking about conditional statements.
The first phrase is using the past subjunctive (“were”). Your clause is setting up a type of sentence called the “second conditional” or a counterfactual conditional.
The second is the same type of sentence, and it’s correct.
Here are some helpful articles on wikipedia: