Is the display from my Samsung a310 2016 compatible with a510 2016?

So, here’s my question. In order to save data from my old Samsung a310 (2016) phone with a broken screen, I ordered a new display. But instead of a a310 one, I got a display for a Samsung a510 (2016).

I know one is larger, but I just want to connect the one I got to my old phone in order to power it up and save the data.

Would that work?

Thank you

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0