I need a solution for adjusting the layout of a component based on the device it is viewed on. For mobile devices, I want the content to stack vertically like in this example: https://codesandbox.io/s/material-demo-forked-ktoee?file=/demo.tsx. However, on desktops, I want the content to be laid out horizontally like in this demo: https://codesandbox.io/s/ykyng?file=/demo.tsx. Can flexbox help me achieve this?