You have pasted the Google Analytic code in your Blogger blog template and its working fine when being viewed on desktops, but when you view your blog in mobile (which converts the URL end with ?m=1) then Google Analytic is not showing the real time statistics and other statistics.

Because in mobile view it changes the template and you have pasted the code in your desktop template. For this what you can do is enter your Google Analytic ID in Blogger blog's setting as shown in image below, then your blog's analytic will display in Google Analytic.