Yes that's the sort of thing my Note 20 Ultra did.
It focuses on the part nearest to the camera to get it as sharp as possible.
The natural affect is the blurring of the background.
On DSLR cameras, it's a natural bokeh. Basically what the phones camera is doing.
Unfortunately with phones, you don't have a variable apature to reduce this.
There are editing apps out there that you can take two or three shots and tap to focus on different parts.
Then use and app to focus stack them to get an overall sharp image.
Maybe someone here can recommend one.
Not had a go doing this on a phone.