When i'm try to access the sharepoint 2010 in iphone, i getting the mobile version but in windows phone i'm getting desktop version not mobile version. This here ant thing i need to change in compat.browser.
You may need to add a mobile browser and device model like below:
- Start IIS Manager by typing INETMGR at a command prompt.
- Right-click the IIS Web site where the SharePoint Web application is installed, and then click Explore.
- In Windows Explorer, double-click the App_Browsers folder.
- Open the compat.browser file in a text editor.
- Find the node.
- Add a new node to the end of the list of browsers.
- Save your changes to the compat.browser file.
- Restart IIS by entering the following command at the command prompt:
Here is a detailed article for your reference: Configuration Mobile Views
Rather than modifying the compat.browser (as those modifications may get overwritten by patches) it's a better practice to create your own .browser file (with a name that's alphabetically later than compat.browser and hence will override it) and add a new browser node for Windows Phone 8.1 to that.
See this blog for details - Managing Customizations to ASP.NET and SharePoint Browser Definitions
To force the load of your new file you don't need to do an IIS reset (which won't help at all), but you do need to touch the built-in compat.browser, which will force a recompile of the definition files, see this MSDN blog for details - Safari 7.1 on MAC Computers causes multiple Issues with SharePoint - "Important" note right at the bottom.