Need help with button layout on small device

I have the following button layout on my web app and it looks fine on larger screens.. enter image description here

On portrait iPad or smaller it looks like this.. enter image description here

I'm not sure what the best way to display, hide/show these would be? Smaller icons, hamburger menu, stack vertically on a grid?

All suggestions appreciated!