A WAP terminal/browser is possible to identify from the user agent field. It deliveres the basic information about the phone and it's firmware.
WAP clients (browsers) send a user agent field when they fetch content from the origin server. You can use this user agent field to define the type of the browser and then build a logic on the origin server to serve suitable content.