It's doable. There may be the odd tantrum.
We played going to a restaurant at dinner and lunch for a few days. I pre set the table, as you would in a restaurant, had some crayons and a colour lingerie sheet for the toddler, lit a tea light, used fake menus. Practiced sitting and waiting and small talk etc. Then had H or myself (we took turns) serve dinner and role it out.
Every time we passed a restaurant we talk about it..."what do you do there? ,what would you like to eat? Do we sit or stand on the chairs? Etc
I think modelling what will happen and managing expectations goes along way.
We even chatted about what ifs?
Also, go armed with sticker books, search and find picture books, water books etc. Don't give them to him as soon as you get there. Wait until you need to give them to him to distract and redirect his attention away from wanting to explore his surroundings. Also, nothing wrong with when wait for food going to have a little walk round and show and explain things through. And, bring him back to the table etc.
Good luck, it's some of the best family fun we've had. Try not to resort to screens, yes they have a time and a place but it's just a crutch you'll end up battling down the line. Save yourself that hassle. It's part of growing up and learning how to behave and it's another parenting hurdle that needs to be gone over.