How can i show my website only display on a mobile phone not in pc.
Here the sample website 2gud.com,this website content only shows in mobile not in desktop.Is there any plugin in wordpress?

Search for browser and device detection plugin if you really have to.

commented: Yes. At least folk here can work around that. +15

No, that's not how the web works. If I want to browse 2gud.com (I don't, but bare with me) I can just override my user agent at the click of two buttons. Why go to a load of effort when there's no payback and it might just piss off your audience?

Screenshot_2018-10-02_at_17_42_41.png

If you want to enforce mobile only build an app.

commented: And the workaround is given. Don't PO the users. +15

*bear with me

Why would you want to do this? Using WP you are leveraging a Web interface so I'm assuming you're not interested in building native apps. You can set media queries to detect screen size and deliver different styling and possibly different content. This is simple but like the user agent method, not foolproof. Reducing a browser window on your pc could be enough to trigger the mobile site. All this seems a teeny bit pointless.

@Alan.davies. It gets even weirder as I check my old iPhone 6. The iPhone 6 display is 4.7 inches in size with a 16:9 resolution of 1334x750 (326 ppi, minus one row of pixels), so there are PCs with about that pixel count so checking if it's mobile by screen pixel count looks to me a dead end.

My main phone is the Moto G5 Plus and has 1080 x 1920 pixels, 16:9 ratio (~424 ppi density so that's a run of the mill TV or PC today.

Just to check I looked at the site on PC and phone and it was fine. I have to woder if the OP is just spamming.

You can try this https://web.wurfl.io/.
I've used it check for device and redirect to a contact page on anything other than phone.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.