Incorrect Sizing of dialogs in Samsung devices after update

Dialogs are incorrectly sized on samsung devices.
upon looking for a similar issues on the forum, found out this but this says it has been fixed, which is not the case for me.

There is another issue on stackoverflow which also mentions the same problem.

This was working fine before last couple of updates, and same app works fine on all other devices

Hello amanv8060_fold,

Thank you for reaching Samsung Developer Forum.

Please login and create a ticket at the following link to get more dedicated support:
Support | Dashboard ( .

Samsung Developer Relations

This has been fixed in the latest update as of now.