It is possible with software like Quagga - essentially it turns your device into a router, which, I would assume, could include smartphones.
I know smartphones have some sort of setting that allows other devices to connect to it..mobile hotspot, but I'm not sure if it's possible with a dedicated router
That is basically possible though you need a routing software on that phone to route the internet traffic to and from that external router. Phones usually don't have that built in but maybe you can program that or find a suitable 3rd party software.
Retrospring uses Markdown for formatting
*italic text*
for italic text
**bold text**
for bold text
[link](https://example.com)
for link