Please try adding this script to the page:
<script>
$(document).ready(function(){
// Params
var questions = [];
// Run
if (!questions.length) {
$('.grid.question').each(function(){
questions.push(this.id.replace(/_div$/, ''));
});
}
var firstQ = questions.shift();
questions.forEach(function(question){
$('#' + question + '_div').hide();
});
if (!$('#' + firstQ + '_div .mobile_grid').length) {
var firstTbody = $('#' + firstQ + '_div .inner_table > tbody');
for (var row = 1; row <= $(firstTbody).children().length; row++) {
questions.forEach(function(question){
$(firstTbody).find('> :nth-child(' + row + ')').append($('#' + question + '_div .inner_table > tbody > tr:nth-child(' + row + ') > td:not(.corner_label_cell):not(.row_label_cell)'));
});
}
}
else {
var firstMobileGrid = $('#' + firstQ + '_div .mobile_grid');
for (var row = 1; row <= $(firstMobileGrid).children().length; row++) {
questions.forEach(function(question){
$(firstMobileGrid).find('> :nth-child(' + row + ') .mobile_grid_options').append($('#' + question + '_div .mobile_grid > :nth-child(' + row + ') .mobile_grid_options').children());
});
}
}
})
</script>
You may find the column widths to look a little strange. If this is the case, you can manually set the width each column is meant to have with CSS. Here's an example for the first three columns that you can place in the first grid question:
<style>
#[% QuestionName() %]_div .inner_table > tbody > tr > td:nth-child(1) {
width: 10%;
}
#[% QuestionName() %]_div .inner_table > tbody > tr > td:nth-child(2) {
width: 10%;
}
#[% QuestionName() %]_div .inner_table > tbody > tr > td:nth-child(3) {
width: 10%;
}
</style>