On desktop, the notifications are ordered by month and on mobile they are ordered by year. The DOM does not change, only the elements we do no need get hidden.
<div class="o-notifications ">
<section class="o-notifications__year">
<header class="o-notifications__header u-tablet-show">
<h4 class="o-notifications__year-text">2018</h4>
</header>
<article class="o-notifications__month">
<header class="o-notifications__header u-tablet-hide">
<h4 class="o-notifications__title">
<span class="o-notifications__month-text">december</span>
<span class="o-notifications__year-text">2018</span>
</h4>
</header>
<ul class="o-notifications__list">
<li class="o-notifications__item">
<div class="m-notification is-read is-file ">
<a
href=""
class="m-notification__link "
></a>
<div class="m-notification__content">
<div class="m-notification__icon">
<span class="m-notification__icon-visual u-tablet-hide"></span>
<span class="m-notification__icon-visual m-notification__icon-visual--mobile u-tablet-show"></span>
</div>
<div class="m-notification__info-container">
<div class="m-notification__date">
<time datetime="2019-01-15">15-12-2129</time>
</div>
<div class="m-notification__info">
<p class="m-notification__title">Belastingcertificaat</p>
</div>
</div>
</div>
</div>
</li>
</ul>
</article>
</section>
<section class="o-notifications__year">
<header class="o-notifications__header u-tablet-show">
<h4 class="o-notifications__year-text">2019</h4>
</header>
<article class="o-notifications__month">
<header class="o-notifications__header u-tablet-hide">
<h4 class="o-notifications__title">
<span class="o-notifications__month-text">januari</span>
<span class="o-notifications__year-text">2019</span>
</h4>
</header>
<ul class="o-notifications__list">
<li class="o-notifications__item">
<div class="m-notification is-file ">
<a
href=""
class="m-notification__link "
></a>
<div class="m-notification__content">
<div class="m-notification__icon">
<span class="m-notification__icon-visual u-tablet-hide"></span>
<span class="m-notification__icon-visual m-notification__icon-visual--mobile u-tablet-show"></span>
</div>
<div class="m-notification__info-container">
<div class="m-notification__date">
<time datetime="2019-01-15">15-01-2019</time>
</div>
<div class="m-notification__info">
<p class="m-notification__title">Overzicht van rente en kosten</p>
</div>
</div>
</div>
</div>
</li>
<li class="o-notifications__item">
<div class="m-notification is-message has-attachment">
<a
href=""
class="m-notification__link "
></a>
<div class="m-notification__content">
<div class="m-notification__icon">
<span class="m-notification__icon-visual u-tablet-hide"></span>
<span class="m-notification__icon-visual m-notification__icon-visual--mobile u-tablet-show"></span>
</div>
<div class="m-notification__info-container">
<div class="m-notification__date">
<time datetime="2019-01-10">10-01-2019</time>
</div>
<div class="m-notification__info">
<p class="m-notification__title">Wat veranderd er voor uw producten?</p>
<p class="m-notification__description u-tablet-hide">Nullam id dolor id nibh ultricies verhicula ut id elit...</p>
</div>
</div>
</div>
<span class="m-notification__attachment u-tablet-hide"></span>
</div>
</li>
<li class="o-notifications__item">
<div class="m-notification is-read is-message ">
<a
href=""
class="m-notification__link "
></a>
<div class="m-notification__content">
<div class="m-notification__icon">
<span class="m-notification__icon-visual u-tablet-hide"></span>
<span class="m-notification__icon-visual m-notification__icon-visual--mobile u-tablet-show"></span>
</div>
<div class="m-notification__info-container">
<div class="m-notification__date">
<time datetime="2019-01-05">05-01-2019</time>
</div>
<div class="m-notification__info">
<p class="m-notification__title">Nieuw jaar promotie!</p>
</div>
</div>
</div>
</div>
</li>
</ul>
</article>
</section>
</div>