Display random view result every x rows
Okay, I solved it by using by using an unformatted list instead of a table.

Here is my code in the end:

&lt;?php if (!empty($title)): ?&gt;
  &lt;h3&gt;&lt;?php print $title; ?&gt;&lt;/h3&gt;
&lt;?php endif; ?&gt;
&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
  &lt;div&lt;?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?&gt;&gt;
    &lt;?php print $row; ?&gt;
  &lt;/div&gt;
&lt;?php 
  $numRows = 6; /* Which row do you want the view to appear? E.g. 6 means that rows 6, 12, 18, etc. will have the view */
  if ((($id - ($numRows - 2) ) % ($numRows - 1)) == 0 &amp;&amp; $id !== 0):
?&gt;
    &lt;div class="ads views-row"&gt;&lt;?php print views_embed_view('VIEW_MACHINE_NAME', 'DISPLAY_ID',''); ?&gt;&lt;/div&gt; 
  &lt;?php endif; ?&gt;
&lt;?php endforeach; ?&gt;