CMS Joomla Mastering Development

Is it possible to change the parent of a menu item at certain widths?

I have a horizontal main menu in which the last item is a dropdown containing further items. Is it possible, as the screen width is reduced, to move items from the horizontal menu into the dropdown? Current menu structure is like so: Item 1 Item 2 Item 3 Item 4 Item 5 – Item 6 […]