I’m having a similar problem, but what I need is the Screen Match Mode to be 0 normally, but be changed to 1 if a Fold phone is detected.
I have no issue with the detection of a folding phone.
The problem I have is finding the code or keyword I need to use to change “Screen Match Mode” to 1 when a Folding phone is detected.
EDIT: Found my solution here: CanvasScaler current scale?