Mirroring phone or tablet content on TV thru Rpi

Hi,

Does anybody know how to mirror your phone or tablet content (iOS or Android) on your TV using the Raspberry Pi and osmc ?

Thank you,
nikox9

Here is a solution for android:

Thanks. I’ll check this out.